In the following script (copied from help on "sdlgfopen", how can I set the default path? I would expect it to search C: for all files (C:\*.*), but ususally it searches only the aspect directory.
I am using 4.7 & 4.8.
proc main
string FileName ; String to contain file name.
string FileSpec ; String to contain file spec.
; Get a file name from user by displaying standard Windows
; file open box.
FileSpec = "c:\*.*" ; Set spec to all files in "c:\".
if sdlgfopen "Choose File" FileSpec SINGLE FileName
usermsg "You chose to open `"%s`"." FileName
endif
endproc
Thanks, Rob
I am using 4.7 & 4.8.
proc main
string FileName ; String to contain file name.
string FileSpec ; String to contain file spec.
; Get a file name from user by displaying standard Windows
; file open box.
FileSpec = "c:\*.*" ; Set spec to all files in "c:\".
if sdlgfopen "Choose File" FileSpec SINGLE FileName
usermsg "You chose to open `"%s`"." FileName
endif
endproc
Thanks, Rob