An array of structures or classes


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
 
Ad

Advertisements


Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top