Click here to return to the KiXtart HelpDesk main page...

KiXtart 2001 Manual

ReDim

Action: Declares dynamic-array variables, and allocates or reallocates storage space at procedure level.
 
Syntax: REDIM [PRESERVE] "variable1" [<,>"variableX"]
 
Remarks: The PRESERVE keyword preserves the data in an existing array when you change the size of the dimension.
Local variables are visible only in the current script or script segment.

 
See Also: Global, Dim, UBound( )
 
Examples:

REDIM $MyArray[20]
 
REDIM PRESERVE $Array[9] ; Note : preserves contents of the array.
 
REDIM $Var1, $Var2, $Var3