T
TheDrooper
Guest
My Progress 11.6 application is using the SYSTEM-DIALOG GET-FILE command to allow the user to select a file:
DEFINE VARIABLE cFilename AS CHARACTER NO-UNDO.
DEFINE VARIABLE lResult AS LOGICAL NO-UNDO.
SYSTEM-DIALOG GET-FILE
cFilename
FILTERS "Text Files (*.txt)" "*.txt",
"All Files (*.*)" "*.*"
DEFAULT-EXTENSION ".txt"
MUST-EXIST
RETURN-TO-START-DIR
TITLE "Select File"
USE-FILENAME
UPDATE lResult.
The problem is the users can navigate to anywhere in the Windows file system. Is there a way to limit the navigation, perhaps only letting them go up to the start-in directory but not beyond?
Continue reading...
DEFINE VARIABLE cFilename AS CHARACTER NO-UNDO.
DEFINE VARIABLE lResult AS LOGICAL NO-UNDO.
SYSTEM-DIALOG GET-FILE
cFilename
FILTERS "Text Files (*.txt)" "*.txt",
"All Files (*.*)" "*.*"
DEFAULT-EXTENSION ".txt"
MUST-EXIST
RETURN-TO-START-DIR
TITLE "Select File"
USE-FILENAME
UPDATE lResult.
The problem is the users can navigate to anywhere in the Windows file system. Is there a way to limit the navigation, perhaps only letting them go up to the start-in directory but not beyond?
Continue reading...