>
>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