Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Property Not Accessible
Message
General information
Forum:
Visual FoxPro
Category:
Classes - VCX
Miscellaneous
Thread ID:
00674022
Message ID:
00674042
Views:
27
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
Map
View

Click here to load this message in the networking platform