PDA

View Full Version : WwDirSelection



SpinMan
11-29-2011, 06:15 AM
I use the WwFileSelection widget alot. Is there another widget that would allow me to select an entire directory instead? We point our tools to raw and truth data directories like this in VMS and hope we could do the same in Windows.

rwagner
11-29-2011, 09:14 AM
I use the WwFileSelection widget alot. Is there another widget that would allow me to select an entire directory instead? We point our tools to raw and truth data directories like this in VMS and hope we could do the same in Windows.

Hi SpinMan,
I do not believe this is an option in Windows. What I typically do is just select any file in the appropriate folder and then remove the filename from the path returned from WWFileSelection doing a split on the '/' character.
-Ryan

SpinMan
11-29-2011, 10:34 AM
Thanks, Ryan!

I was afraid you'd say that. I got spoiled on VMS....

frog
12-12-2011, 09:22 PM
You can resolve with file keyword.
How about this?

; main call
file = WwFileSelection(wid, 'FILEOKCB', 'FILECANCELCB', $
Title='Dir Selection', pattern='*', file='Dir Selection', dir='anydir')

PRO FILEOKCB, wid, shell
PARSEFILENAME, file, path=path
PRINT, PATH
END

Hope this help.

SpinMan
01-26-2012, 08:00 AM
Frog,
thanks! you've solved a long-standing problem.