Get Program Directory
2
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;



me
jamesmcm
Can
Kelmi
ysg
dannymo2
chorny
wallie
Hackdemian
impomatic
dannyboy
sundaramkumar
mattrmiller
Pio
i_kenneth
ASmith
ctiggerf
sehrgut
bertheymans
SCoon
There are currently no comments for this snippet.