If a custom class definition holds a reference to another custom class (using the "ADD OBJECT" command), how can I set that object reference from outside the class? So...
oVol = createobject("clsVolatility")
oDate = Createobject("clsDateRange")
oVol.DateRange = oDate && Not working.
***************************************
DEFINE CLASS clsVolatility AS CUSTOM
***************************************
Volatility = 0
ADD OBJECT DateRange AS clsDateRange
ENDDEFINE
***************************************
DEFINE CLASS clsDateRange AS CUSTOM
***************************************
StartDate = {}
EndDate = {}
ENDDEFINE
Previous
Next
Reply
View the map of this thread
View the map of this thread starting from this message only
View all messages of this thread
View all messages of this thread starting from this message only