I have a structure A that contain 2 integer, 1 String, and 1 array of another Struct B.
In a function, i want to initialize the size of the array of structure B, but Microsoft Visual Basic don't want to accept all try I do.
the struct A
Structure XpGrpData
Dim Mode As Integer
Dim XpValue As Integer
Dim Name As String
Dim player As XpUsrData()
End Structure
the struct B
Structure XpUsrData
Dim Mode As Integer
Dim XpValue As Integer
Dim Name As String
End Structure
how i do normally the thing
Dim CurrentXpData As XpGrpData
CurrentXpData.player = New XpGrpData(myValue)
But my IDE says "Too Much Arguments for 'Public Sub New()'". How I can set the size of my array ?