Solved

select a directory......

Posted on 1999-01-17
7
163 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

This article explains how to create forms/units independent of other forms/units object names in a delphi project. Have you ever created a form for user input in a Delphi project and then had the need to have that same form in a other Delphi proj…
Introduction Raise your hands if you were as upset with FireMonkey as I was when I discovered that there was no TListview.  I use TListView in almost all of my applications I've written, and I was not going to compromise by resorting to TStringGrid…
In this video, viewers will be given step by step instructions on adjusting mouse, pointer and cursor visibility in Microsoft Windows 10. The video seeks to educate those who are struggling with the new Windows 10 Graphical User Interface. Change Cu…
Michael from AdRem Software explains how to view the most utilized and worst performing nodes in your network, by accessing the Top Charts view in NetCrunch network monitor (https://www.adremsoft.com/). Top Charts is a view in which you can set seve…

734 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