J
John Dann
Is there a way of declaring an array of a structure where the
structure has a constructor? So if I had a structure say
Friend MyStructure
prop1 as integer
prop2 as string
sub New (p1 as integer, p2 as string)
me.prop1=p1
me.prop2=p2
End Sub
End Structure
' If I was declaring a single variable I could say:
Dim MyVar as MyStructure(100, text)
' But I can't think how to do this if I wanted:
dim MyVar(50) as MyStructure...
Is this possible/impossible?
Thanks
JGD
structure has a constructor? So if I had a structure say
Friend MyStructure
prop1 as integer
prop2 as string
sub New (p1 as integer, p2 as string)
me.prop1=p1
me.prop2=p2
End Sub
End Structure
' If I was declaring a single variable I could say:
Dim MyVar as MyStructure(100, text)
' But I can't think how to do this if I wanted:
dim MyVar(50) as MyStructure...
Is this possible/impossible?
Thanks
JGD