Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Cannot use myfunc() in SET FILTER TO?
Message
From
17/10/1998 15:33:50
 
General information
Forum:
Visual FoxPro
Category:
FoxPro 2.x
Miscellaneous
Thread ID:
00147370
Message ID:
00147814
Views:
31
>
>In FPW, you can build a filtered index that contains a UDF. If the nature of the filter condition requires that a UDF be used, this is one alternative. Another might be using a query to retrieve the record set. Of course, under VFP, I would hestitate to use either.

It's sloppy but the UDF could return a character string to complete the SET FILTER TO; ie:

cFilter=MyFunc()
SET FILTER TO &cFilter

But my response would match yours --- yuck.
------------------------------------------------
John Koziol, ex-MVP, ex-MS, ex-FoxTeam. Just call me "X"
"When the going gets weird, the weird turn pro" - Hunter Thompson (Gonzo) RIP 2/19/05
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform