basic.array.dimensioned

Definition/BASIC Program, Releases: AP and R83

a table where the contents of the elements can be altered (replaced) but the position of each element is fixed.

Description

a table where the contents of the elements can be altered (replaced) but the position of each element is fixed. In other words, new elements cannot be inserted and existing elements cannot be deleted.

Any alteration of elements in a 'dimensioned' array does not directly affect the other elements of the array. Again, each element is a separate variable. In contrast, 'dynamic arrays' are strings contained in single variables. Any change to the array requires that the entire string be rebuilt.

Since any element in a 'dimensioned array' can be a string variable, and any string can be treated as a dynamic array, a 'dimensioned array' can be an array of 'dynamic arrays'. For example:

print rec(7)<1,vmc>

See Also

Command Name Type Description
basic.dim Statement Declares a dimensioned array.
basic.array.dynamic Definition A string variable delimited by reserved metacharacters.
basic.array.references Definition Referencing arrays.
basic.matwrite Statement Writes dimensioned array to file.
basic.matread Statement Reads item into dimensioned array.
basic.matbuild Statement Converts dimensioned array to dynamic array.
basic.matparse Statement Converts dynamic array to dimensioned array.
basic.assignment Definition Assigns value to variable.
basic.extract Function Extracts element from array.
basic.( Reserved Character used to surround arguments within functions, or to enclose subscript refererences within dimensioned arrays. It is also used to override the normal order of precedence evaluation.
basic.) Reserved Character surrounds arguments within functions, encloses subscript refererences within dimensioned arrays, and overrides the normal order of precedence evaluation.
basic.array.variable Definition References a dimensioned array.

User Comments

What do you think?

Share your experience or ask a question by using the form below.

Login to leave your comments.