KB-45438: Declaring a dynamic Array.

Question:

How can a dynamic Array be declared?

Solution:

First, you must declare the array with no size. Then, use ReDim declaration to size the array as needed. 

Script being executed in a button on screen (example):

Dim Value()
a=2
ReDim Value(a)

Value(0) = 10
Value(1) = 20

MsgBox ” * First Value: ” & Value(0) & ”  ** Second Value: ” & Value(1)

Print Friendly, PDF & Email

Este artigo foi útil? Was this helpful?

Classificação média - Average rating 0 / 5. Count: 0

Leave a Reply

Your email address will not be published.Required fields are marked *