Solved

select a directory......

Posted on 1999-01-17
7
157 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
Comment Utility
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
Comment Utility
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
Comment Utility
Oooooooops, sorry BoRiS, your comment wasn't there, when I wrote my answer...
0
Find Ransomware Secrets With All-Source Analysis

Ransomware has become a major concern for organizations; its prevalence has grown due to past successes achieved by threat actors. While each ransomware variant is different, we’ve seen some common tactics and trends used among the authors of the malware.

 
LVL 1

Expert Comment

by:BlackDeath
Comment Utility
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
Comment Utility
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
Comment Utility
SHBrowseForFolder WORKS on WinNT4!!!
Your documentation must be old...  :-)

Regards, Madshi.
0
 

Expert Comment

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

Featured Post

How to run any project with ease

Manage projects of all sizes how you want. Great for personal to-do lists, project milestones, team priorities and launch plans.
- Combine task lists, docs, spreadsheets, and chat in one
- View and edit from mobile/offline
- Cut down on emails

Join & Write a Comment

Suggested Solutions

Creating an auto free TStringList The TStringList is a basic and frequently used object in Delphi. On many occasions, you may want to create a temporary list, process some items in the list and be done with the list. In such cases, you have to…
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…
Access reports are powerful and flexible. Learn how to create a query and then a grouped report using the wizard. Modify the report design after the wizard is done to make it look better. There will be another video to explain how to put the final p…
Here's a very brief overview of the methods PRTG Network Monitor (https://www.paessler.com/prtg) offers for monitoring bandwidth, to help you decide which methods you´d like to investigate in more detail.  The methods are covered in more detail in o…

762 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

Need Help in Real-Time?

Connect with top rated Experts

11 Experts available now in Live!

Get 1:1 Help Now