@ABORT.CODE
|
A value indicating the cause of execution of the last abort. This variable is particularly useful within ON.ABORT paragraphs or programs invoked from them. Values are:
1 | A QMBasic ABORT statement or the ABORT command has been used |
2 | The Quit option has been selected after the break key was pressed |
The value of @ABORT.CODE is initially zero and is reset to zero only by the EXECUTE statement
|
@ABORT.MESSAGE
|
Contains the text of any message associated with the most recent abort event.
|
@ANS
|
Contains the result of the last virtual attribute expression evaluated. This variable can be updated, usually only in C-type dictionary items.
|
@COMMAND
|
The last command entered at the command prompt or initiated using the QMBasic EXECUTE statement.
|
@COMMAND.STACK
|
This variable holds the last 99 commands executed at the command prompt as a field mark delimited dynamic array. The most recent command is field 1.
|
@CRTHIGH
|
Contains the number of lines per page of the display.
|
@CRTWIDE
|
Contains the width of the display.
|
@DATA.PENDING
|
Contains the data on the DATA queue, if any. Each item, including the last, is followed by an item mark character.
|
@DATE
|
The internal format date value (days since 31 December 1967) at which the last command started execution. Any changes made to this variable will also be reflected in the values of the @DAY, @MONTH, @YEAR and @YEAR4 variables described below.
|
@DAY
|
The day of the month at which the last command started execution as a two digit value. Changing @DATE will also change this value.
|
@DS
|
Contains the operating system specific directory delimiter character, \ on Windows, / on other platforms.
|
@FILE.NAME
|
The name of the file referenced in the most recent query processor command. This variable may be updated by a QMBasic program.
|
@HOSTNAME
|
The name of the server computer system. Same as SYSTEM(1015).
|
@ID
|
The record id of the record being processed by a query processor command or an I-type function. This variable may be updated by a QMBasic program.
|
@IP.ADDR
|
The IP address associated with a network user. Same as SYSTEM(42).
|
@ITYPE.MODE
|
This variable can be used to determine the mode of execution of an I-type. It has three possible values:
1 | Evaluation of the old index value when updating or deleting a record from a file with an alternate key index. |
2 | Evaluation of the new index value when updating or adding a record to a file with an alternate key index. |
|
@LEVEL
|
The current command processor depth (EXECUTE level). The initial command processor is level one, each EXECUTE level increments this by one, decrementing on return from that level.
|
@LOGNAME
|
User's login name. On Windows, this is converted to uppercase.
|
@LPTRHIGH
|
Contains the number of lines per page of print unit zero. Depending on the current setting of the PRINTER flag, this may refer to the display or to the printer.
|
@LPTRWIDE
|
Contains the width of print unit zero. Depending on the current setting of the PRINTER flag, this may refer to the display or to the printer.
|
@MONTH
|
The month in which the last command started execution as a two digit value. Changing @DATE will also change this value.
|
@NB
|
Break number level. Set to zero on detail lines and one upwards on break lines. A value of 255 represents the grand total line.
|
@NI
|
Item counter. Used in I-types, this holds the number of records retrieved by the query processor command.
|
@OPTION
|
Contains a copy of field 4 of the V-type VOC entry when a verb starts execution. Use of this variable enables related commands to be handled by a single program.
|
@PARASENTENCE
|
The sentence that invoked the most recent paragraph or sentence. On entering a command at the keyboard, this variable will be set to the same value as @COMMAND. If the command is a paragraph or sentence which invokes a further paragraph or sentence, the value will be updated to be the command which started this new paragraph or sentence.
|
@PATH
|
The pathname of the current account.
|
@PIB
|
The PROC primary input buffer.
|
@POB
|
The PROC primary output buffer.
|
@QMSYS
|
The pathname of the system account.
|
@RECORD
|
The data of the record being processed by an I-type function. This variable may be updated by a QMBasic program.
|
@SELECTED
|
Contains the total record count for the most recent SELECT or SSELECT operation. Note that a QMBasic SELECT operation against a dynamic file processes the file one group at a time and this variable will show the record count for the group being processed.
|
@SENTENCE
|
The currently active sentence. This is different from @COMMAND if the command runs a paragraph, sentence or menu.
|
@SIB
|
The PROC secondary input buffer.
|
@SOB
|
The PROC secondary output buffer.
|
@SYSTEM.RETURN.CODE
|
A status value returned from most commands.
|
@SYS.BELL
|
This variable is available to QMBasic programs and initially contains the ASCII BEL character (character 7) which, when sent to the display, causes the audible warning to sound. The BELL OFF command changes @SYS.BELL to a null string and BELL ON reverts to the default character. Thus use of @SYS.BELL in QMBasic programs results in an audible alarm which can be disabled by the user.
|
@TERM.TYPE
|
Terminal type.
|
@TIME
|
The internal format time value (seconds since midnight) at which the last command started execution. This value may be updated by a QMBasic program.
|
@TRANSACTION.ID
|
The unique id number for the currently active transaction. Zero if no transaction is active. Same as SYSTEM(1007).
|
@TRANSACTION.LEVEL
|
The transaction depth. Zero when no transaction is active, incremented for each active transaction, decremented when a transaction terminates. Same as SYSTEM(1008).
|
@TRIGGER.RETURN.CODE
|
A status value returned set by trigger functions that return a STATUS() value of ER$TRIGGER.
|
@TTY
|
Terminal device name. This variable is provided for compatibility with other systems. It contains one of the following values:
console | QMConsole interactive session on Windows |
/dev/... | QMConsole interactive session on other platforms |
port | Serial port connection |
Other process types may be added in future.
|
@USER
|
Synonym for @LOGNAME
|
@USER0 to @USER4
|
These variables are initially set to zero and may be updated by QMBasic programs to provide status information, etc. QM places no rules on the use of these variables and does not update them at any time.
|
@USERNO
|
User number.
|
@USER.NO
|
Synonym for @USERNO.
|
@USER.RETURN.CODE
|
This variable is initially set to zero and may be updated by QMBasic programs to provide status information, etc. QM places no rules on the use of this variable and does not update it at any time.
|
@VOC
|
This @VOC variable can be used as the file variable for the VOC in place of opening it explicitly within user written application code.
|
@WHO
|
User's account name.
|
@YEAR
|
The last two digits of the year in which the last command started execution. Changing @DATE will also change this value.
|
@YEAR4
|
The four digit year number in which the last command started execution. Changing @DATE will also change this value.
|