I need to create a dynamic array of structure. Here is some of my code
<script language="VB" runat="server">
Structure PlayerStructure
Dim Name As String
Dim MoreCrap as String
Dim PiledEvenHigher as Integer
End Structure
Function InsertPlayer(Th ePlayer as String, Players() as PlayerStructure ) as integer
'This will insert a plyer in the array of structure and return the position in the array
dim TotalPlayers as integer = Players.length
TotalPlayers = TotalPlayers + 1
Redim Preserve Players(TotalPl ayers) as PLayerstructure
Players(TotalPl ayers).Name = ThePlayer
return TotalPlayers
end function
Sub Page_Load(Src As Object, E As EventArgs)
.
.
. bla bla bla
Getting very stupid error message
BC30811: 'ReDim' statements can no longer be used to declare array variables.
Using .net Studio 2003
How on earth are you supposed to have a array of dynamic structure in asp.net?
<script language="VB" runat="server">
Structure PlayerStructure
Dim Name As String
Dim MoreCrap as String
Dim PiledEvenHigher as Integer
End Structure
Function InsertPlayer(Th ePlayer as String, Players() as PlayerStructure ) as integer
'This will insert a plyer in the array of structure and return the position in the array
dim TotalPlayers as integer = Players.length
TotalPlayers = TotalPlayers + 1
Redim Preserve Players(TotalPl ayers) as PLayerstructure
Players(TotalPl ayers).Name = ThePlayer
return TotalPlayers
end function
Sub Page_Load(Src As Object, E As EventArgs)
.
.
. bla bla bla
Getting very stupid error message
BC30811: 'ReDim' statements can no longer be used to declare array variables.
Using .net Studio 2003
How on earth are you supposed to have a array of dynamic structure in asp.net?
Comment