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
Voir le fil de ce thread
Voir le fil de ce thread à partir de ce message seulement
Voir tous les messages de ce thread
Voir tous les messages de ce thread à partir de ce message seulement