Pre-Processor Statements
102
Axcess Programming Language
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.
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.
_ _FILE_ _
At compile time, this keyword
is replaced by a string that
contains the DOS filename of
your program.
Example:
(* The program was saved as SAMPLE.AXS *)
SEND_STRING Ø, _ _FILE_ _
In this example, the string 'SAMPLE.AXS' is sent to device Ø.
_ _LINE_ _
At compile time, this keyword
is replaced by a constant that
contains the line number the
keyword is on.
Example:
(* This is line number 23 *)
SEND_STRING Ø, _ _LINE_ _
The value '25' (two lines down from 23) is sent to device Ø.
_ _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.
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 Ø.
_ _TIME_ _
At compile time, this keyword
is replaced by a string that
contains the compile time.
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 Ø.
_ _ VERSION _ _
The system variable VER-
SION returns the current ver-
sion of the Axcess compiler
(available on Version 3.05 or
newer).
Example:
SEND_STRING Ø,"'COMPILER VERSION:
',__VERSION__,$ØD,$ØA"
Содержание Axcess
Страница 1: ...instruction manual Software Axcess Programming Language ...
Страница 8: ...vi Axcess Programming Language Table of Contents ...
Страница 12: ...Introduction 4 Axcess Programming Language ...
Страница 22: ...Axcess Basics 14 Axcess Programming Language ...
Страница 38: ...Channel Characteristics 30 Axcess Programming Language ...
Страница 54: ...Levels 46 Axcess Programming Language ...
Страница 62: ...Operators 54 Axcess Programming Language ...
Страница 66: ...Variable Types and Conversions 58 Axcess Programming Language ...
Страница 70: ...Two Dimensional Arrays 62 Axcess Programming Language ...
Страница 80: ...While Keywords 72 Axcess Programming Language ...
Страница 86: ...Using Buffers 78 Axcess Programming Language ...
Страница 94: ...Waits and Timer Keywords 86 Axcess Programming Language ...
Страница 102: ...Using Subroutines 94 Axcess Programming Language ...
Страница 108: ...Include Files and System_Calls 100 Axcess Programming Language ...
Страница 120: ...Compiler Error Messages 112 Axcess Programming Language ...
Страница 124: ...The External_Control Protocol 116 Axcess Programming Language ...
Страница 143: ...Index 135 Axcess Programming Language ...