Name

ReDim Statement

Synopsis


ReDim [Preserve] varname(subscripts) _
                 [, varname(subscripts)  ...]
Preserve optional; Keyword

Preserves the data within an array when changing the only or last dimension

varname required; String literal

Name of the variable

subscripts required; Numeric

Number of elements and dimensions of the array, using the syntax:

upper [, upper] ...

The number of upper bounds specified is the number of dimensions. Each upper bound specifies the size of the corresponding coordinate.

Description

Used within a procedure to resize and reallocate storage space for an array

Get VB.NET Language Pocket Reference now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.