Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Some improvement ideas for CCursor class
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
The Mere Mortals Framework
Divers
Thread ID:
00645646
Message ID:
00646442
Vues:
26
>Serge,
>
>>No. I was thinking about using it dynamically during the life of BizObj.
>>I am using First(), Next() and other methods and I need to set filter before I call those.
>
>What I meant is, are you envisioning that SetFilter() is an empty method at the Framework level, and the developer places code in subclasses of the business object that sets a particular filter.
>
>Do you see the Framework calling this method automatically?
>
>Regards,

I was thinking about something like CreateIndex() method where I can send the whole filter expression as a parameter. I did not see the Framework calling this method automatically, but I assume I could always use DataEnvironment.PostInitHook() if I need to call it.

Here is how it might look:

LPARAMETERS tcFilter

LOCAL lcAlias
lcAlias = This.GetAlias()

IF Used(This.GetAlias())
SET Filter TO &tcFilter IN (lcAlias)
ENDIF
Serge Matsevilo, Seattle, WA, USA
Senior Programmer/Analyst,
iServ Systems, Inc.
e-mail: smatsevilo@iservsystems.com
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform