Notes on the "Source" column:
• | Says where this particular keyword was first used. |
• | Abbreviations used: "AB" = AlphaBASIC; "Plus" = BASICplus. |
Notes on "Switches:"
• | The column entry shows the compiler switch(es) required to enable this feature. |
• | When more than one switch is listed, "or" is implied—i.e., just one of the switches is required. |
Keyword |
Switches |
Category |
Description |
---|---|---|---|
ABS |
|
Returns the absolute value of a number. |
|
.ACCOUNT |
X:2 |
Returns the user’s current ppn (e.g. "100,22"). |
|
|
Trig Function |
Returns arccosine. |
|
|
Allocate a random file. |
||
X:1 |
Control Statement |
Execute AMOS commands as subroutines. |
|
AND |
|
Logical AND. |
|
X:2 |
Number of parameters passed in the last function, procedure call, or SBX. |
||
X:2 |
Returns the size of the specified argument. |
||
X:2 |
Returns type of specified argument passed to the current SBX, function, or procedure. |
||
|
Returns numeric value of first character. |
||
|
Trig Function |
Returns arcsine. |
|
|
Trig Function |
Returns arctangent. |
|
X:2 |
|
Enables or disables the visibility of variables defined globally. |
|
|
"Intelligently" capitalizes the specified string. |
||
X:2 |
Dyn Struct Function |
Binds the specified DYNSTRUCT variable to the structure definition. |
|
BYTE |
|
|
BYTE(X) reads memory-mapped ports. |
|
Control Statement |
Unstructured subroutine call. |
|
CASE |
X:1, RC |
|
Label option within SWITCH. |
.CCYYMMDD |
X:2 |
Returns current date in CCYYMMDD format. |
|
CHAIN |
|
|
Provides the ability to pass command line arguments. CHAIN <string expr> is supported in all compiler modes, including the ability to include command line arguments in the <string expr>, which must start with a program name, optionally followed by an arbitrary string of arguments, e.g. CHAIN "progxx /hard and /fast". Use CMDLIN or Xcall LSTLIN to retrieve the parameters in the target program. |
|
Returns the OEM or Latin1 character of specified string. |
||
X:2 |
Array Statement |
Removes all the elements of the array without destroying the array itself. |
|
|
Close file. |
||
X:1 |
|
Retrieve command line. |
|
|
Trig Function |
Returns cosine. |
|
DATA |
|
General Statement |
List of data elements with program. |
|
Returns system date. |
||
X:2 |
Returns date as a decimal number which displays as MMDDYY. |
||
|
Trig Function |
Returns double arctangent |
|
.DDMMYY |
X:2 |
Returns current date in DDMMYY format. |
|
DEBUG |
X:2 |
|
|
|
Compiler Directive |
Allows aliases to be defined for the names of functions and procedures. |
|
DEFAULT |
X:1, RC |
|
Default label option within SWITCH. |
X:1, RC |
Compiler Directive |
Define a symbolic constant. |
|
X:2 |
Compiler Directive |
Define a structure. |
|
X:2 |
Compiler Directive |
Defines an alias for a data type. |
|
X:2 |
Returns the user’s current device (e.g. "DSK0:"). |
||
DIM |
|
|
Deprecated; use DIMX instead. Dimension an array at runtime. |
X:2 |
|
Enhanced dynamic array allocation. |
|
X:1 |
|
Treat division by zero as zero rather than error. |
|
X:1, RC |
Ctrl Struct Statement |
Repeat loop while (or until) a condition is (or becomes) true. |
|
X:2 |
|
Read-only system variables. |
|
X:2 |
|
Like PRINT but creates a static text control. |
|
X:2 |
Dyn Struct Function |
Returns the offset to the specified DYNSTRUCT member. |
|
X:2 |
Dyn Struct Function |
Same as .OFFSIZ$() except that it operates at run time instead of compile time. |
|
ECHO |
X:1 |
|
Set terminal echo mode; same as Xcall ECHO. |
X:1 |
Returns a modified version of a string, based on option bits set in flags. |
||
|
|
Conditionals based on evaluating a constant expression. |
|
|
Ctrl Struct Statement |
Final alternative clause within an IF statement. |
|
X:2, RC |
Ctrl Struct Statement |
Intermediate alternative clauses an IF statement. |
|
END |
|
Control Statement |
Terminate execution of program. |
ENDFUNCTION |
X:2 |
|
Marks end of a function. |
|
Ctrl Struct Statement |
Terminates IF...ENDIF blocks. |
|
ENDPROCEDURE |
X:2 |
|
Marks end of a procedure. |
X:2 |
|
End of a DEFSTRUCT ... ENDSTRUCT block. |
|
X:1, RC |
|
End of SWITCH statement. |
|
|
Returns end-of-file status for file channel. |
||
|
Logical equivalence. |
||
|
Returns error/status information about the last operation on an ISAM file. |
||
|
Returns various err codes. |
||
X:1 |
Returns the text of the error message. |
||
X:2 |
|
Force error within compilation. |
|
X:2 |
|
Special exit label within function / procedure. |
|
X:1 |
Control Statement |
Exit from inner-most loop or block (DO, FOR, SWITCH). |
|
X:2 |
Control Statement |
Exit the current function. |
|
X:2 |
Control Statement |
Exit the current procedure. |
|
X:2 |
Control Statement |
Exit the current function or procedure to label $EXITPROGRAM |
|
EXP |
|
Returns the natural log of a number. |
|
.EXPERIENCE |
X:2 |
See Dot Variables. |
|
|
|
Returns the "extent" of the subscript number. |
|
++EXTERN |
X:2 |
|
Exposes individual global variables. |
FACT |
|
Returns the factorial of a number. |
|
.FALSE |
X:2 |
See Dot Variables. |
|
|
Set numeric offset for first file record. |
||
X:1 |
Copies the given expression up to the specified length. |
||
FIX |
|
Returns the integer part of the floating point value. |
|
.FN |
X:2 |
Alias for the variable holding the return value of a function. |
|
.FN'xxx |
X:2 |
Simplifies referencing the result of a previously called function. |
|
FOR |
X:2 |
Ctrl Struct Statement |
See FOR … NEXT. |
|
|||
X:2 |
Ctrl Struct Statement |
Used to iterate through Ordered Maps. |
|
.FSTAT |
X:2 |
|
Returns the file status for the last ISAM-A operation on the specified channel. |
FUNCTION |
X:2 |
|
Begin definition of function. |
X:1 |
|
Input a character. |
|
GOSUB |
|
Control Statement |
Same as CALL. |
|
Control Statement |
Jump to specified line number, label or variable. |
|
GRIDMAP |
X:2 |
A variation of ordered map with two keys and one value. |
|
IF |
|
Ctrl Struct Statement |
Traditional form of IF statement. |
X:1, RC |
Ctrl Struct Statement |
Block-structured form of traditional IF statement; see IF … ENDIF. |
|
++IF |
|
Ctrl Struct Statement |
|
X:2 |
Ctrl Struct Statement |
Shortcut for IF/THEN/ELSE statements. |
|
X:2 |
Ctrl Struct Statement |
|
|
++INCLUDE |
|
|
Include specified file at compile time; see INCLUDE. |
X:2 |
|||
INPUT |
|
Input field(s) from keyboard or file; see INPUT. |
|
INSTR |
|
|
Substring search; see INSTR(). |
X:2 |
|
Extended version substring search; INSTR(). |
|
X:2 |
Searches a string for a pattern, like INSTR(), but in reverse. |
||
INT |
|
Returns the largest integer less than or equal to x. |
|
IO |
|
|
IO(X) pseudo reads from memory-mapped I/O port. |
.ISDEF |
X:2 |
Dyn Struct Function |
Returns TRUE (-1) if the specified dynamic structure ds contains the specified member. |
.ISEMPTY |
X:2 |
Reports whether the specified string or unformatted expression is empty, |
|
X:2 |
|
Tests for the NULL condition. See Ordered Maps > Special ORDMAP Functions. |
|
.JOBNAME |
X:2 |
Returns the jobname. |
|
.KEY |
X:2 |
|
Returns the key associated with the element currently indexed by the iterator. |
|
Delete a file. |
||
.LAST_LABEL |
X:2 |
See Dot Variables. |
|
.LAST_ROUTINE |
X:2 |
See Dot Variables. |
|
LCS$ |
|
See String Functions. |
|
LEFT$ |
|
See String Functions. |
|
LEN |
|
|
Returns length of a string. See String Functions. |
LET |
|
|
Assignment statement. |
X:2 |
File Function |
Returns the current line # within the current page for sequential output files. |
|
.LOCATION |
X:2 |
Returns the current program location counter. |
|
LOG |
|
Returns the natural log of a number. |
|
LOG10 |
|
Returns the decimal log of a number. |
|
|
|
|
|
|
|
Return size of file in blocks. See File-Related Functions. |
|
LOOKUP ("fspec") |
|
|
Function version of LOOKUP statement. |
LOOP |
X:1, RC |
|
See DO / WHILE / UNTIL. |
LSTRIP |
|
Returns the specified string with leading blanks and tabs removed. |
|
|
|
Variable declaration. |
|
MAX |
|
Maximum of two operands. |
|
MEM |
|
See System Functions. |
|
X:2 |
|
Output message during compilation. Also see ++ERROR. |
|
.MICROTIME |
X:2 |
Returns number of microseconds since midnight. |
|
MID$ |
|
Returns substring starting in position x and extending y characters or until end. |
|
.MILLLITIME |
X:2 |
Returns number of milliseconds since midnight. |
|
MIN |
|
Minimum of two operands. |
|
X:2 |
A bidirectional linked list. |
||
.MMDDYY |
X:2 |
Returns current date in MMDDYY format. |
|
MOD |
|
Modulo. |
|
.MONTH |
X:2 |
Returns the three character abbreviation for the current month. |
|
.NEST_LEVEL |
X:2 |
Number of levels deep with nested function/procedure calls. |
|
.NEXT |
X:2 |
Advances the iterator, returning the associated key or .null if no more. |
|
NO’DIVIDE’BY’0 |
X:1 |
|
Force divide by zero to generate error 10 (default). See DIVIDE'BY'0. |
NOECHO |
X:1 |
|
Set terminal noecho mode. Same as Xcall NOECHO. |
NOT |
|
Logical NOT. |
|
.NULL |
X:2 |
See Ordered Maps > Special ORDMAP Functions. |
|
|
|
Treat argument as numeric. |
|
X:1 |
See String Functions. |
||
X:2 |
Returns the offset to the specified member variable. |
||
X:2 |
Returns the combination of the specified structure member's offset and size. |
||
ON - GOSUB |
|
|
Call one of list of subroutines, based on value. |
ON - GOTO |
|
|
Goto one of list of labels, based on value. |
ON ERROR GOTO |
|
Control Statement |
Specify error handling routine. |
OPEN |
|
Open file. |
|
OPEN for APPEND |
X:1 |
|
Enhancement to OPEN #CH, FSPEC, APPEND. |
OR |
|
Logical OR. |
|
X:2 |
|
An associative array that maps keys to values |
|
X:2 |
|
Same as ORDMAP but supports multiple keys of the same value. |
|
X:2 |
Pad a string with spaces (function). |
||
X:2 |
File Function |
Return the current page number for sequential output files. |
|
.PGMNAME |
X:2 |
See Dot Variables. |
|
.PGMVERSION |
X:2 |
See Dot Variables. |
|
POP |
|
|
Deprecated. Pops the current GOSUB return address from the stack. |
.POPBACK |
X:2 |
Remove last element from an MLIST. |
|
.POPFRONT |
X:2 |
Removes first element from an MLIST. |
|
X:1 |
|
||
|
Output variables and expressions to screen or file. |
||
PROCEDURE |
X:2 |
|
Start definition of a procedure. |
|
|
Program header declaration. |
|
RANDOMIZE |
|
Numeric Function |
Initialize Random Number Generator with a randomly selected seed. |
|
Read from file. |
||
READL |
|
|
Read record and lock. See file access statements |
READ'ONLY |
|
File open mode modifier. See OPEN. |
|
.RECNO |
X:2 |
Returns the current record number for the specified file channel. |
|
.RECSIZ |
X:2 |
Returns the record size for the specified open file channel. |
|
X:2 |
Array Statement |
Re-dimensions an array originally created with Dynamic Arrays (DIMX). |
|
X:1, RC |
Control Statement |
Jump to top of loop structure to begin next iteration. |
|
RESTORE |
|
General Statement |
Reset DATA access pointer to beginning. |
RESUME |
|
Control Statement |
Resume to line after last error. |
RESUME WITH ERROR |
X:2 |
|
Special version of resume used with functions and procedures. |
RETURN |
|
Control Statement |
Return from unstructured subroutine (see GOSUB, CALL). |
X:2 |
|
Return value from XFUNC. |
|
RIGHT$ |
|
Returns the rightmost x characters of a string. |
|
|
Numeric Function |
Returns a random number. |
|
X:2 |
Numeric Function |
Returns a random number. |
|
RTRIM |
|
Returns string with trailing spaces removed. |
|
.SBXNAME |
X:2 |
Returns name of current SBX or "" if not applicable. |
|
.SBXVERSION |
X:2 |
Returns version string for current SBX or "" if not applicable. |
|
SCALE |
|
|
Declare scaled arithmetic. |
X:2 |
Sets the record number of a file. |
||
SGN |
|
Returns sign of a number. |
|
|
General Statement |
Set output/format significance of floating point values. |
|
SIN |
|
Trig Function |
|
X:2 |
Returns size of previously mapped variable. |
||
X:1 |
General Statement |
Sleep for specified seconds. Same as Xcall SLEEP. |
|
.SORT |
X:2 |
Sort elements in MLIST by value. |
|
SPACE |
|
Returns a string of x spaces. |
|
.SPLICE |
X:2 |
Splice elements from one MLIST to another. |
|
SQR |
|
Returns square root of a number. |
|
X:2 |
Numeric Function |
Initializes the random number generator. |
|
STEP |
|
|
Set loop counter increment. See FOR … NEXT. |
STOP |
|
|
Program stop, wait for CR to continue. |
X:2 |
String String Function |
Treats the expression argument as a string. |
|
STR$ |
|
Convert a numeric value or expression to string. |
|
|
Compiler Directive |
Sets the default length of string variables. |
|
STRIP |
X:1 |
Returns var with all trailing spaces removed. . |
|
|
Compiler Directive |
Sets the default length of string variables. |
|
X:1, RC |
Ctrl Struct Statement |
Conditional execution based on value of an expression. |
|
TAB(X,Y,Z) |
X:2 |
|
Extension of tab(x,y) with z indicating attributes to assign to the text. |
TAN |
|
Trig Function |
|
.TERMINAL |
X:2 |
See Dot Variables. |
|
THEN |
|
Ctrl Struct Statement |
Separates IF condition from statement. See IF. |
TIME |
X:2 |
System Function |
See System Functions. |
.TIME |
X:2 |
Dot Variable |
Returns current time in HHMMSS format. |
TO |
|
|
See FOR … NEXT. |
TPRINT |
X:2 |
|
See Expressions. |
TRACE |
X:2 |
|
|
TRIM |
X:2 |
Returns the specified string with leading spaces and tabs removed. |
|
.TRUE |
X:2 |
See Dot Variables. |
|
UCS$ |
X:2 |
String Function |
Returns a string folded to upper case. |
|
Compiler Directive |
Cancels (UNDEFines) a symbol created by a prior DEF... directive. |
|
X:2 |
Release lock on file or record. |
||
X:1, RC |
Ctrl Struct Statement |
Repeat loop while (or until) a condition is (or becomes) true. |
|
.USERNAME |
X:2 |
Returns the user name. |
|
USING |
|
Formatting by template. |
|
|
|
Returns the decimal value of a string. |
|
X:2 |
String Function |
Extended version of VAL. |
|
X:2 |
|
Same as XCALL but uses a string expression for the subroutine name. |
|
WEND |
/D |
|
Same as ENDIF. |
WHEN |
/D |
|
Same as IF. |
X:1, RC |
Ctrl Struct Statement |
Repeat loop while (or until) a condition is (or becomes) true. |
|
WORD |
|
|
WORD(X) reads memory-mapped ports. |
|
Write to random file. |
||
X:2 |
Output comma delimited values. |
||
X:1 |
Write record not previously locked. |
||
X:1 |
Same as WRITEL but leave record locked. |
||
X:1 |
Same as WRITE but leave record locked. |
||
WRITETD |
X:2 |
|
Deprecated; see WRITECD. |
|
|
Call external subroutine. |
|
X:2 |
General Function |
Call an external (SBX) function. |
|
X:2 |
General Statement |
Retrieve subroutine parameters. |
|
X:2 |
Variation on OPEN statement fo ISAM-A. |
||
XOR |
|
Logical XOR; exclusive OR. |
|
X:2 |
General Statement |
Return subroutine parameters. |
|
X:2 |
Allow record access via explicit record numbers. |
||
.YYMMDD |
X:2 |
See Dot Variables. |