ProvideX V8.20 > Language Reference > 2. Directives
75
DEF sysvar= Directives
     Define System Variables
Formats
1. Set Contents of CTL Variable: DEF CTL = num
2. Set Contents of ERR Variable: DEF ERR = num
3. Set Contents of LFO Variable: DEF LFO = num
4. Set Contents of LFA Variable: DEF LFA = num
5. Set Contents of EOM Variable: DEF EOM = strvar$
6. Set Contents of RET Variable: DEF RET = nuim
Where:
num
Numeric value for setting selected variable.
strvar$
String value for setting selected variable.
Description
Use these DEF formats to define the contents of the specified system variable:
DEF CTL
Numeric code (integer) that represents a signal of user input from the
keyboard or mouse.
DEF ERR
Numeric value (integer) that indicates the last system-detected error.
DEF LFO
Channel/file number of the last file opened.
DEF LFA
Channel/file number of the last file or device accessed.
DEF EOM End-Of-Message character string that ended last input.
DEF RET
Operating system's error code associated with the last operating call.
See Also
CTL System Variable, p.555,
ERR System Variable, p.558
LFO System Variable, p.562
LFA System Variable, p.561
EOM System Variable, p.557
RET System Variable, p.569.