Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Seeking record and finding next match...
Message
From
19/09/1999 13:25:23
 
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00264789
Message ID:
00266494
Views:
17
That's only faster if there is no index on clientnum and firmid, not even sure if it is faster then. If there are indexes, foxpro will use rushmore to optimze the scan/endscan loop.

>A more optimized use of SCAN is
>
>
>SCAN
>  IF  ! ClientNum=This.Value OR ! FirmID=xxxx
>    LOOP
>  ENDIF
>   * Do something with the matching records.
>ENDSCAN
>
>This avoids VFP putting a filter on the table which will slow it down.
--Todd Sherman
-Wake Up! Smell the Coffee!
Previous
Reply
Map
View

Click here to load this message in the networking platform