Object Programming Question (Resolved)
Hello,
I've set up an object, and am trying to nest other objects. However, it seems that it won't work. Can anyone help?
Example Code (in a .BAS Module):
Public Type AObj
Param1 as Integer
Param2 as Integer
End Type
Public Type BObj
Params as AObj
End Type
Public BigObject as BObj
When using this, I can enter:
a = BigObject.Params
The following won't work:
a = BigObject.Params.Param1
a = BigObject.Params.Param2
Any Ideas on how to make this work?
I'm using VB6-SP5
Thanks,
Ken