Can an object be a parent to another object in a class module? I tried setting up my class to have a property of another object type but I get an Object Variable not set error. What is the correct syntax for this? My code reads something like this:
Class Named "Structure"
Option Explicit
Private cSize As Size
Public Property Get Size() As Size
Size = cSize
End Property
"Size" is another class module with properties like "Length", "Width", "Height", etc.
I would like to contain all the dimensional information within the "Size" class and only refer to it in the "Structure" class.
Class Named "Structure"
Option Explicit
Private cSize As Size
Public Property Get Size() As Size
Size = cSize
End Property
"Size" is another class module with properties like "Length", "Width", "Height", etc.
I would like to contain all the dimensional information within the "Size" class and only refer to it in the "Structure" class.