Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Some improvement ideas for CCursor class
Message
General information
Forum:
Visual FoxPro
Category:
The Mere Mortals Framework
Miscellaneous
Thread ID:
00645646
Message ID:
00646442
Views:
25
>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
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform