###Keyword###
ReDim

###Description###
Resize an existing array

###Syntax###
<b>ReDim</b> $array<b>[</b>subscript 1<b>]</b>...<b>[</b>subscript n<b>]</b>

###Parameters###
@@ParamTable@@
$variable
	The name of the variable to resize.
subscript
	The number of elements to create for the array dimension, indexed 0 to n-1.
@@End@@


###Remarks###
The ReDim keyword is similar to <a href="Dim.htm">Dim</a>, except that ReDim preserves the values in the array instead of removing the values while resizing an array.  The number of dimensions must remain the same, or the old array will be forgotten during the ReDim.  The array will retain the scope (Global or Local) that it had prior to resizing.


###Related###
Dim, <a href="../functions/UBound.htm">UBound</a>


###Example###
@@IncludeExample@@
