Navigation: thinBasic language > Data types and variables > REDIM |
|
Description
Used to re dimension a previously declared arrays.
Syntax
REDIM [PRESERVE] VariableName[(subscripts)]
Returns
None
Parameters
Remarks
REDIM will preserve previous array data only if optional PRESERVE clause will be specified.
If PRESERVE is not present an empty array will be created and previous data will be deallocated.
Restrictions
See also
Examples
'---Arrays
Dim MaxItems As Long Value 10000
Dim MyArray(MaxItems) As String
'---Undimensioned array redimensioned later
Dim MyUndimensionedArray() As String
'...
ReDim MyUndimensionedArray(MaxItems)
© 2004-2008 thinBasic. All rights reserved. | Version 1.7.0.0 | Web Site: http://www.thinbasic.com |