An array of structures or classes

  • Thread starter Thread starter new
  • Start date Start date
N

new

Hey guys, how do I get this to work properly? I'm trying to emulate
C++ class structures in VB.

Public Class classOne
{
Public Shared classOneMethodOne (0 to 10) As ClassTwo
}
End Class

Public Class classTwo
{
Public Shared classTwoMethodOne(0 To 10) As Integer
Public Shared classTwoMethodTwo(0 to 10) As Integer
}
End Class

In the main form I have the declaration

classOnePrime (0 to 10) As classOne

classOnePrime(1).classOneMethodOne(1).classTwoMethodOne(1)=7


Thank you for any help!!

Bex
 
Back
Top