AMX AXCESS CONTROL SYSTEM PROGRAM Instruction Manual page 110

Programming language
Table of Contents

Advertisement

Pre-Processor Statements
Include File and System_Call Keywords (Cont.)
#WARN
This compiler directive key-
word forces a warning mes-
sage to be displayed after the
program is compiled.
_ _FILE_ _
At compile time, this keyword
is replaced by a string that
contains the DOS filename of
your program.
_ _LINE_ _
At compile time, this keyword
is replaced by a constant that
contains the line number the
keyword is on.
_ _NAME_ _
At compile time, this keyword
is replaced by a string that
contains the
PROGRAM_NAME descrip-
tion on the first line of your
program.
_ _TIME_ _
At compile time, this keyword
is replaced by a string that
contains the compile time.
_ _ VERSION _ _
The system variable VER-
SION returns the current ver-
sion of the Axcess compiler
(available on Version 3.05 or
newer).
102
Its purpose is to remind the user of certain conditions that were placed in the
program. For example:
#WARN 'This is obsolete code'
#End_If
This keyword marks the end of an #IF_DEFINED or #IF_NOT_DEFINED block
of code.
Example:
(* The program was saved as SAMPLE.AXS *)
SEND_STRING Ø, _ _FILE_ _
In this example, the string 'SAMPLE.AXS' is sent to device Ø.
Example:
(* This is line number 23 *)
SEND_STRING Ø, _ _LINE_ _
The value '25' (two lines down from 23) is sent to device Ø.
Example:
PROGRAM_NAME = 'This is a sample Axcess program'
(* Later in the program... *)
SEND_STRING Ø, _ _NAME_ _
The string 'This is a sample Axcess program' is sent to device Ø.
The format is 'HH:MM:SS', where HH equals hours, MM equals minutes, and
SS equals seconds. The time is given in a 24-hour format (military time). For
example:
(* The program was compiled at 3:45 PM *)
SEND_STRING Ø, _ _TIME_ _
The string '15/45/ØØ' is sent to device Ø.
Example:
SEND_STRING Ø,"'COMPILER VERSION:
',__VERSION__,$ØD,$ØA"
Axcess Programming Language

Hide quick links:

Advertisement

Table of Contents
loading

This manual is also suitable for:

Axcess

Table of Contents