Go Premium for a chance to win a PS4. Enter to Win

x
?
Solved

select a directory......

Posted on 1999-01-17
7
Medium Priority
?
170 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
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 210 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
Independent Software Vendors: 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

Concerto's Cloud Advisory Services

Want to avoid the missteps to gaining all the benefits of the cloud? Learn more about the different assessment options from our Cloud Advisory team.

Question has a verified solution.

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

Have you ever had your Delphi form/application just hanging while waiting for data to load? This is the article to read if you want to learn some things about adding threads for data loading in the background. First, I'll setup a general applica…
In my programming career I have only very rarely run into situations where operator overloading would be of any use in my work.  Normally those situations involved math with either overly large numbers (hundreds of thousands of digits or accuracy re…
Want to learn how to record your desktop screen without having to use an outside camera. Click on this video and learn how to use the cool google extension called "Screencastify"! Step 1: Open a new google tab Step 2: Go to the left hand upper corn…
In response to a need for security and privacy, and to continue fostering an environment members can turn to for support, solutions, and education, Experts Exchange has created anonymous question capabilities. This new feature is available to our Pr…
Suggested Courses

885 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