I'd like to use the new "Display OpenFile" or "Display SaveFile".
Using "Display OpenFile" or "Display SaveFile" with a valid starting filename:
target filename seems updated to reflect the starting filename whatever button, 'OK' or 'Cancel', the user clicked on.
This behavior doesn't reproduce GetOpenFileName or GetSaveFileName API function.
How to know the user clicked 'Cancel' ? I guess 'Cancel' should return an empty string in target filename.
Thanks for any comment.
(forwarded to [email protected])
Code:
Display OpenFile hDlg,,, $MyCaption, InitialFolder$, $MyFilter, _ StartFilename$, $MyDefaultExt, %MyFlagOpen To TempFilename$ If Len(TempFileName$) > 0 Then 'do something Else 'nothing to do End If
target filename seems updated to reflect the starting filename whatever button, 'OK' or 'Cancel', the user clicked on.
This behavior doesn't reproduce GetOpenFileName or GetSaveFileName API function.
How to know the user clicked 'Cancel' ? I guess 'Cancel' should return an empty string in target filename.
Thanks for any comment.
(forwarded to [email protected])
Comment