pipinana2002
asked on
Open folder
Hi.. I'm using Delphi 6 in Windows XP, and I want the user to choose the folder name in which he will use the data in that folder as the database. I want to get the folder name which the user has chosen.. Is it using Open Dialog Box or using something else? Any help will be very much appreciated :) Thanksss..
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
Hi meikl..
Thanks for your help :)
Can I actually remove the files and drives list from the display?
Thanks againn.. :)
Thanks for your help :)
Can I actually remove the files and drives list from the display?
Thanks againn.. :)
Thanks meikl,
I did not know about that!
pipinana2002: you have the solution from the best.
:-)
...Snehanshu
I did not know about that!
pipinana2002: you have the solution from the best.
:-)
...Snehanshu
ASKER
Hi again meikl.. I already found how to do it.. hehehehehe thanks a lot for your helpp :):):) U're really great! :)
glad you got it,
to use another dialog-style,
just use the other syntax
procedure TForm1.Button1Click(Sender : TObject);
var s : string;
begin
s := '';
if selectdirectory('Select A Directory','',s) then
showmessage('Directory '+s+' is selected');
end;
meikl ;-)
to use another dialog-style,
just use the other syntax
procedure TForm1.Button1Click(Sender
var s : string;
begin
s := '';
if selectdirectory('Select A Directory','',s) then
showmessage('Directory '+s+' is selected');
end;
meikl ;-)
You could use:
1) TDirectoryListBox from Win3.1
2) TDirectoryEdit from RX components (http://sourceforge.net/projects/rxlib/)
for selecting folder names.
HTH,
...Snehanshu