Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations SkipVought on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Select a Directory

Status
Not open for further replies.
Apr 25, 2002
156
0
0
GB
Hi Following Yesterdays Excellent help i have another Question for the Forum

When i have my dirctory listing I want to display a Window with all the Directories in a particular drive showing so that the user is able to just select the folder WITHOUT opening it so i can capture the folder name to a variable and then pass the variable contents to a PRG.

regards

Rdrunner
 
Rdrunner

Code:
nDirs = ADIR(aDirs,".","D")

nDirs will have the number of folders
aDirs array will hold details about the folders

You can use this array to populate a form/window


Hope this helps

Time is the father of truth. Time will tell.
-------------------------------------------
Benson O. A. (Infinity Link Limited)
 

Rdrunner

Remember this code will pick the folders from
the current folder (DEFAULT).


Time is the father of truth. Time will tell.
-------------------------------------------
Benson O. A. (Infinity Link Limited)
 

Try GETDIR() function:

Code:
my_dir=GETDIR('c:\StartHere\', 'Please select a directory:')
?my_dir
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top