Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Property Not Accessible
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Classes - VCX
Divers
Thread ID:
00674022
Message ID:
00674042
Vues:
26
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
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform