Solved

select a directory......

Posted on 1999-01-17
7
161 Views
Last Modified: 2010-04-06
How do you select a directory with a dialog component?  I don't want the file dialog as I know I can select a file then parse off the directory, but I want to select a directory only. The D3 help says the report component has this feature, but I should not have to start using report components just to select a directory.  Is there an easier way?  Has anyone done this?  I'm using D3 with Win98.

           Thank you
0
Comment
Question by:jexd99
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
7 Comments
 
LVL 4

Expert Comment

by:BoRiS
ID: 1362309
jexd99

Thereare  various components availabel for this, i now there are a couple at www.torry.ru
also I have writing my own component that creates a Directory Dialog, but I have upgraded it to D4, let me see if I have the D3 source code here, just leave you mail address i'll mail it to U...

Later
BoRiS

0
 
LVL 20

Accepted Solution

by:
Madshi earned 70 total points
ID: 1362310
You can use the winAPI SHBrowseForFolder.
If you want to have a component rather than an API, you can probably find something on these sites:

Delphi Super Page:   http://nswt.tuwien.ac.at/delphi/index.htm
Torry's Delphi Pages:   http://www.torry.ru/

Any questions about SHBrowseForFolder? Ask me...

Regards, Madshi.
0
 
LVL 20

Expert Comment

by:Madshi
ID: 1362311
Oooooooops, sorry BoRiS, your comment wasn't there, when I wrote my answer...
0
Technology Partners: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

 
LVL 1

Expert Comment

by:BlackDeath
ID: 1362312
hi, jexd99.

i've written such a comp manually some time ago.
if you want the code, post your eMail-address, i'll send it over t'ya.

bye,

Black Death.
0
 

Author Comment

by:jexd99
ID: 1362313
SHBrowseForFolder doesn't work on NT.  Even though I use Win98, I would like for this to work on NT also.  Anyone have an idea if the components work on NT, or are the components just a wrapper over SHBrowseForFolder?

           Thanks
0
 
LVL 20

Expert Comment

by:Madshi
ID: 1362314
SHBrowseForFolder WORKS on WinNT4!!!
Your documentation must be old...  :-)

Regards, Madshi.
0
 

Expert Comment

by:vanbeek
ID: 2738334
Instead of using SHBrowseForFolder, you can use SelectDirectory, see Delphi documentation for more information and an example.
0

Featured Post

Industry Leaders: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
find a node in VST 2 89
How to renew a Delphi rad-studio licence? 5 92
TServerSocket - file via sendbuf or Text via sendtext ? 1 85
Firemonkey Queue list 1 48
A lot of questions regard threads in Delphi.   One of the more specific questions is how to show progress of the thread.   Updating a progressbar from inside a thread is a mistake. A solution to this would be to send a synchronized message to the…
Hello everybody This Article will show you how to validate number with TEdit control, What's the TEdit control? TEdit is a standard Windows edit control on a form, it allows to user to write, read and copy/paste single line of text. Usua…
Nobody understands Phishing better than an anti-spam company. That’s why we are providing Phishing Awareness Training to our customers. According to a report by Verizon, only 3% of targeted users report malicious emails to management. With compan…
The Email Laundry PDF encryption service allows companies to send confidential encrypted  emails to anybody. The PDF document can also contain attachments that are embedded in the encrypted PDF. The password is randomly generated by The Email Laundr…

740 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question