Get Program Directory





2
Date Submitted Tue. Mar. 6th, 2007 12:31 PM
Revision 1 of 1
Beginner ido
Tags Delphi | Folder
Comments 0 comments
This code return program directory.


function TForm1.GetProgramDir:string;
var s:string;
begin
  s:=Paramstr(0);

  while pos('\',s2)<>0 do
  begin
    result:=result+copy(s2,1,pos('\',s2));
    delete(s2,1,pos('\',s2));
  end;

end;

 

Alex Popov

Comments

There are currently no comments for this snippet.

Voting

Votes Down


Helper lolfejs