Declarations and Functions Overview | Statement List
Declarations define the variables which are used in a program. You can specify the variable name, data type, and any initial values you want assigned to the variables. All declarations must precede the first line of executable code.
The declaration statement GRIPSW prevents the program from compiling if it contains undeclared simple variables.
The following table summarizes the format of declaration statements. See the Function List for a complete description of their use.
Declaration |
Format Summary |
NUMBER |
NUMBER/name(dim1[,dim2[,dim3]]) [,name(dim1[,dim2[,dim3]])]+ |
STRING |
STRING/name([dim1,[dim2]],n) [,name([dim1[,dim2]],n)]+ |
ENTITY |
ENTITY/name[(dim1[,dim2[,dim3]])] [,name[(dim1[,dim2[,dim3]])]]+ |
DATA |
DATA/name,value[,value]+[,name,value[,value]+]+ |
GRIPSW |
GRIPSW/DECLRV |