C
cyberdude
Hi,
I defined A as an array in this way:
Dim A() as string
It is an array with unspecified array size.
Somewhere in the programme, I define the array size like this:
ReDim A(10)
When I redim, does it mean some memory is immediately allocated for
this array or does memory is allocated for this array ONLY when I
define the elements as well, like, for example,
ReDim A(10)
A(1)="apple"
A(2)="orange"
.....
?
Thanks.
Mike
I defined A as an array in this way:
Dim A() as string
It is an array with unspecified array size.
Somewhere in the programme, I define the array size like this:
ReDim A(10)
When I redim, does it mean some memory is immediately allocated for
this array or does memory is allocated for this array ONLY when I
define the elements as well, like, for example,
ReDim A(10)
A(1)="apple"
A(2)="orange"
.....
?
Thanks.
Mike