Script Command: #define


(Contents)(Previous)(Next)

Format:

#define SYMBOL TEXT

The define command allows you to assign a TEXT string to a SYMBOL. When the PC Access script compiler sees the SYMBOL in your script file, it replaces the SYMBOL with the TEXT string you assigned to it.

· The define command is special in that it does not have a semi-colon (;) at its right-hand end.

· The SYMBOL must be in the same format as a LABEL.

Example:

#define TIME_OUT_DELAY 1000

label START;

send "JIM JONES";

wait TIME_OUT_DELAY for "PASSWORD";

// TIME_OUT_DELAY is replaced with

// the number 1000.


(Contents)(Previous)(Next)