Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Kind of like an incremental search?
Message
From
15/01/1999 16:29:18
 
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00176662
Message ID:
00176720
Views:
29
>Then later I do the following:
>SELECT mytable
>SET FILTER TO &pcCondition
>SCAN FOR &pcCondition
>...
>...
>...
>ENDSCAN


Steve,

Since you asked for help, I'm gonna give it. The code sample above is bad for 2 reasons. First, why perform 2 operations using pcCondition. Set a filter on a table and then browse it. Only records matching your filter will be shown. The same view of the table you just saw in the browse will be the view the Scan loop uses. Second, in general I avoid "Set Filter" as it has given me much problems in the past. "Scan for ...." is the prefered way to process only selected records.

PF

(On an infant's shirt): Already smarter than Bush
Previous
Reply
Map
View

Click here to load this message in the networking platform