MAT


The MAT command is used to either assign every element in a specified array to a single value or to assign the entire contents of one array to another.

 

COMMAND SYNTAX

MAT Array = expression
MAT Array1 = MAT Array2

 

SYNTAX ELEMENTS

Array, Array1 and Array2 are all pre-dimensioned arrays declared with the DIM statement. Expression can evaluate to any data type.

 

NOTES

Note that if any element of the array Array2 has not been assigned a value then a runtime error will occur. This can be avoided by coding the statement MAT Array2 = " after the DIM statement.

 

EXAMPLES

001 DIM A(45), G(45)
002 MAT G = "Array value"
003 MAT A = MAT G


jBC