Closes the current document.
Syntax
CHGVAR |
VAR(&CMD) VALUE('WCLOSEFILE') |
CHGVAR |
VAR(&PARM1) VALUE('[*YES|*NO]') |
CHGVAR |
VAR(&PARM2) VALUE(' ') |
CALL |
PGM(LNCCMD) PARM(&HANDLE &CMD &OPT &PARM1 + &PARM2 &RESULT) |
Parameters
Parameters |
|
Parm1 |
This command closes the current document using one of these options : *YES : Saves the modifications and close the document. *NO : Closes the document without saving the modifications. Default: if the document has not been saved before closing, and if no option is choosen, a Word popup occurs in order to save the document. |
|
Example
CHGVAR |
VAR(&CMD) VALUE('WCLOSEFILE') |
CHGVAR |
VAR(&PARM1) VALUE(' ') |
CHGVAR |
VAR(&PARM2) VALUE(' ') |
CALL |
PGM(LNCCMD) PARM(&HANDLE &CMD &OPT &PARM1 + &PARM2 &RESULT) |
or
LNCCMD CMD(WCLOSEFILE)
In this example, WORD will display a dialog box to confirm the saving operation. If the WORD window has been minimized, it will blink in the task bar. Restore the window to display the dialog box.
See also
• WSAVEAS