STRUCTURE with arrays - Problem writing to arrays!!! Please help!
Good afternoon Gentlemen,
my problem is the following:
I coded following structure + array of that structure
The Line
CardValueArray(1).Value(0) = 5
produces an error message I never saw in my life (tons of line codes in a MsgBox-like Form showing different .dll files that went wrong or something... have no idea). Would anybody know what is wrong with this code?
Is there any other way to declare a structure with two dynamic arrays inside?
Thanks a lot for your time and statements!
skyyakal
Good afternoon Gentlemen,
my problem is the following:
I coded following structure + array of that structure
Visual Basic:
Structure CardValueStructure
Dim Value() As Integer
Dim Scenario_ID() As Integer
End Structure
Shared CardValueArray(0) As CardValueStructure
....
ReDim Preserve CardValueArray(2)
CardValueArray(1).Value(0) = 5
The Line
CardValueArray(1).Value(0) = 5
produces an error message I never saw in my life (tons of line codes in a MsgBox-like Form showing different .dll files that went wrong or something... have no idea). Would anybody know what is wrong with this code?
Is there any other way to declare a structure with two dynamic arrays inside?
Thanks a lot for your time and statements!
skyyakal
Last edited by a moderator: