REDIM [Preserve] varname

Initialises and resizes a dynamic array.


varnameThe name of the array variable.

REMARKS
* Redimensions one or more dynamic array variables and reallocates their storage space
* This statement is used with Dynamic Arrays.

Dim arValues() As String 
ReDim arValues(3)

arValues(0) = "Pizza"
arValues(1) = "Chips"
arValues(2) = "Biscuits"
arValues(3) = "Lettuce"

© 2019 Better Solutions Limited. All Rights Reserved. © 2019 Better Solutions Limited Top