DIAdem

cancel
Showing results for 
Search instead for 
Did you mean: 

browseforfolder

Hi,
I try to create a SUD-userdialog with a spezial button. This button
opens a new dialog, which should show all drives and subfolders on the
system.
I tried to use the VBS BrowseForFolder Method ("oFolder =
Shell.BrowseForFolder(Hwnd, sTitle, iOptions [, vRootFolder])").
It works great. But now I have to use an old operating system (Windows
NT 4.0 SP6.a, Iexplorer 6.0, shell32.dll version 4.0) and the method
doesnt work , because of the old shell32.dll. Is there any other
possibility to open a dialog to choose a folder?
thanks
Lutz
0 Kudos
Message 1 of 7
(4,435 Views)
Hi lutz,

There are two DIAdem commands that you can use to pop open a file/folder browsing dialog, both in VBScripts run from DIAdem as well as from SUDialogs, and they should both work on any Windows operating system:

FileNameGet() ..... opens a dialog to select a file
PathNameGet() ..... opens a dialog to select a folder

The DIAdem help describes each of these well, ask if you have further questions.

Brad Turpin
DIAdem Product Support Engineer
National Instruments
0 Kudos
Message 2 of 7
(4,435 Views)
thank you!
0 Kudos
Message 3 of 7
(4,434 Views)

Hi,

even if this thread is rather old - a dummie question: I tried to use PathNameGet(), the dialog opens and everything, but from where do I get the selected path? I couldn'd find that in help. Is there a variable like FileDlgDir where the command stores this? The return value of PathNameGet() is only a dialog state.

Thanks,

Stefan

Message 4 of 7
(4,212 Views)
Hello Stefan!

The variable is DlgOutputPath. It is documented in the 9.1 help.

Matthias
Matthias Alleweldt
Project Engineer / Projektingenieur
Twigeater?  
Message 5 of 7
(4,207 Views)
Thank you - I just looked into the 9.1 help and found it, too. In the Diadem 10 help, this information is missing Smiley Sad
 
Regards,
 
Stefan
0 Kudos
Message 6 of 7
(4,206 Views)

Hi Stefan

in the next version of DIAdem you will find that information again in the help. It seems to be lost. Thanks for the feedback.

Winfried

0 Kudos
Message 7 of 7
(4,201 Views)