Information générale
Catégorie:
Programmation Orientée Object
THANKS FOR YOUR QUICK ANSWER!
When I say EVAL I say to my porpertie ObjRef ( an array with the obj reference load at the init of the objects ) like this:
Problems begin when I use:
* - Remeber that ObjRef it's an array and there is no EVAL in this process ---
#define _grdDtOf THISFORM.ObjRef("grdDtOf")
lcDummy = _grdDtOf.RECORDSOURCE
To resolve problems I must use
(1st solution)
LOCAL logrdDtOf
logrdDtOf = THISFORM.ObjRef("grdDtOf")
lcDummy = logrdDtOf.RECORDSOURCE
---
(2nd solution)
than I was thinking if this was not to much heavy and wating for an answer of the Universal Thread I put this:
* - Using all "PATH"
#define _grdDtOf THISFORM.cntRegisto.grdDtOf
lcDummy = _grdDtOf.RECORDSOURCE
---
(3nd solution)
and I'm thinking put the defines in includes. Is this wath tou mean with #define macros?
The cost of menagement decrease with this solution, but if I use the Obj.Reference this will have no costs. Remember that I can put the ObjRef_Acess methode returning not the reference but the "PATH" and than use the macro operator like this:
LOCAL logrdDtOf
logrdDtOf = THISFORM.ObjRef("grdDtOf")
lcDummy = &logrdDtOf..RECORDSOURCE
---
I think I have explain the where I was "walking" better now. Do you still thinking that the best way it's the 2nd solution ( if it's this qhat you mean ) ?
THANKS
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