In my football sim I am trying to save all the info from a game. There are two defined dimensions to this array. The first is the number of weeks(17 always) and then the number of games per week (Number of teams /2). The plays themselves are unknown in quantity so I decided to use List of to store them.
With this type of multi-dimensional array that is also a List of I am having trouble with the Get and Set properties.
I have a member variable declared as:
Later I redim the array:Code:Private m_StoredRegSeasonGames(,) As List(Of CLStoredPlay)
My issue is I do not know the proper coding for the Get and Set Properties. This is the closest I could get:Code:ReDim m_StoredRegSeasonGames(17, m_intNumberOfTeams / 2)
The only error I get with this version is a warning: StoredPreSeasonGames doesn't return a value on all code paths. Still, something is off. The parentheses and comma look wrongly placed. What am I missing?Code:Friend Property StoredPreSeasonGames As List(Of CLStoredPlay)(,) Get m_StoredPreSeasonGames = m_StoredPreSeasonGames End Get Set(ByVal value(,) As List(Of CLStoredPlay)) m_StoredPreSeasonGames = value End Set End Property
Thanks in advance.![]()





Reply With Quote