Closes the text file previously opened with FILEOPEN.
Syntax
CHGVAR |
VAR(&CMD) VALUE('FILECLOSE') |
CHGVAR |
VAR(&PARM1) VALUE(' ') |
CHGVAR |
VAR(&PARM2) VALUE(' ') |
CALL |
PGM(LNCCMD) PARM(&HANDLE &CMD &OPT &PARM1 + &PARM2 &RESULT) |
Example
In
this example, the « C:\temp\text.txt » file is write enabled and
current content is deleted.
The program will, then, write a text into the file and close it.
|
|
||||||||||||||||||||||||
|
|
||||||||||||||||||||||||
|
|
||||||||||||||||||||||||
Other example LNCCMD CMD(FILECLOSE) |
|
||||||||||||||||||||||||
|
|
See also