-
-
Within a jBase-Basic program, a data array can be represented as a Dynamic Array:
-
– Used with array_name<datax>
-
or alternatively as a Matrix:
– A typical example of matrice is R.NEW
– Also named «dimensioned array»
– Used with: array_name(datax)
To be noticed:
– When writing in a table, always do it with a dynamic array.
– When passing an array as a parameter (argument) with a CALL <subroutine> , always do it with a dynamic array.
Alternatively, if the parameter of the CALL <subroutine> is a matrix, indicate it using a MAT before the parameter name.
Example if param2 is a matrix: CALL SUBROUTINE(param1, MAT param2).
-
Functions used to convert a MATRIX to a DYNAMIC array:
MATWRITE array TO file.variable, record ID
MATBUILD dynamic.array FROM array (,start (,end)) (USING delimiter)
-
Functions used to convert a DYNAMIC to a MATRIX array:
MATPARSE array FROM dynamic.array (,delimiter)
MATREAD array FROM file.variable, record ID