Redefing DIm Array: yes, but redefining Type?

Stellaferox

Active Member
Licensed User
Hi All,

I know arrays can be redefined in subs regarding the dimensions but is this also possible for the Type structure (e.g. Type (X,Y) persons(0) can be redefined as Type (X,Y) persons(100) in a sub)?

thnx,

Marc
 

agraham

Expert
Licensed User
Longtime User
You can't use the Type keyword in a Sub as it errors but you can get the effect you want by "Dim persons(100, 2)". Note that a Type is actually an array with an extra dimension whose length corresponds to the number of accessors. You can see this by "Arraylen(persons(),2)"
 
Top