4Ć11
The following are invalid string constants and the reasons that they
are invalid:
WRONG TERMINATOR' (Surrounding quotes must be of same
type.)
`SAME HERE" (Surrounding quotes must be of same type.)
NO TERMINATOR (No closing double quote.)
The following are examples of valid string constants assigned to
string variables and string constants used as intermediate values in
expressions:
MESSAGE$ = GEAR BO
X F
AULT"
MESSAGE$ = SECTION 12 AIR PRESSURE SAFETY VALVE
FAULT"
PART_MES
SAGE$ = LEF
T$(SECTION 12 AIR PRESSURE
SAFETY VAL
VE F
AUL
T", 12)
(Valid string constant not assigned to a variable directly but used
an an intermediate value to a function.)
PRINT SECTION 12 AIR PRESSURE SAFETY VAL
VE F
AULT"
(Valid string constant used in a print statement.)
With integers and strings, a constant is used in initializing or
assigning a value to a variable. Boolean variables must be assigned
the values of true or false. The two boolean constants are TRUE" or
ON" and F
ALSE" or OFF
."
The following are valid boolean constants:
SYSTEM_READY@ = TRUE
OVER_TEMP@ = OFF
Comentários a estes Manuais