Consultor Eletrônico



Kbase P9024: The SAVE-AS system dialog is not appending the file extension.
Autor   Progress Software Corporation - Progress
Acesso   Público
Publicação   6/25/2003
Status: Unverified

FACT(s) (Environment):

Windows
Progress 9.x

SYMPTOM(s):

The file extension selected by the user in the SAVE-AS system dialog is not appended to the file name as expected.

Running code similar to:

DEFINE VARIABLE cFileName AS CHARACTER NO-UNDO.
SYSTEM-DIALOG GET-FILE cFileName
TITLE "Choose Procedure to Run ..."
FILTERS "Source Files (*.p)" "*.p", "R-code Files (*.r)" "*.r"
SAVE-AS.
MESSAGE cFileName VIEW-AS ALERT-BOX.

CAUSE:

The DEFAULT-EXTENSION option is missing from the SYSTEM-DIALOG GET-FILE statement.

FIX:

Add the DEFAULT-EXTENSION "" option to the SYSTEM-DIALOG GET-FILE statement:

DEFINE VARIABLE cFileName AS CHARACTER NO-UNDO.
SYSTEM-DIALOG GET-FILE cFileName
TITLE "Choose Procedure to Run ..."
FILTERS "Source Files (*.p)" "*.p", "R-code Files (*.r)" "*.r"
SAVE-AS
DEFAULT-EXTENSION "".
MESSAGE cFileName VIEW-AS ALERT-BOX.