You are here: start » ppl » statements » redim

REDIM

REDIM

Dynamically redimension an array at run-time.
To use it you must declare the array in advance with the number subscripts desired. This allows the compiler to perform it's standard error checking on subscripts.
ie:

   STRING s(1,1,1)  
   REDIM s,5,5,5  
   LET s(4,4,4) = "Hello, World!"  
   PRINTLN s(4,4,4)  

If an attempt is made to redimension an array with a different number of dimensions, an error or warning (as appropriate) will be generated.
See also: Compilation, Options

ppl/statements/redim.txt · Last modified: 2019/04/16 14:00
CC Attribution 4.0 International Except where otherwise noted, content on this wiki is licensed under the following license: CC Attribution 4.0 International