PDA

View Full Version : Dialog.Folder question



RapD
10-30-2005, 10:50 AM
i made a dialog folder that after the user select the folder open a new dialog File that enter to the folder he selected in the dialog folder.
my question is how can i get the location of the file he selected between the Dialog.Folder to Dialog.File.

for example
i select the folder "folder" and choose the file "file.exe" in the "tash" folder so the path be like that:

folder//tash//file.exe

the "folder" name he selected in the Dialog.Folder
the file.exe he selected in the Dialog.File.

rhosk
10-30-2005, 11:06 AM
I think this is what you're looking for?

http://www.indigorose.com/webhelp/ams60/Program_Reference/Actions/Dialog.FileBrowse_Examples.htm

RapD
10-31-2005, 08:48 AM
no dude. its not.
if someone can help me thats will be great. :)

RapD.
:yes

TJ_Tigger
10-31-2005, 09:02 AM
no dude. its not.
if someone can help me thats will be great. :)

RapD.
:yes

Can you post part of your project, sample code or explain in more detail you want the actions to do?

I don't quite understand what it is that you are trying to accomplish. If I read correctly it seems like what you want to do is allow the user to select a file within a folder and then extract the full path of the folder where the file is located? If that is the case, look at the String.SplitPath to break apart the full path to the file into a table and you can use the parts to reconstruct the drive and folder to the file.

Tigg