REDIM [Preserve] varname

Initialises and resizes a dynamic array.

varnameThe name of the array variable.

* Redimensions one or more dynamic array variables and reallocates their storage space.
* This statement is used with Dynamic Arrays.
* This statement can also be used with the Preserve keyword.
* For the Microsoft documentation refer to

Dim arValues() As String 
ReDim arValues(3)

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

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