Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
SCAN ... ENDSCAN
Message
 
 
To
26/09/2001 11:14:52
General information
Forum:
Visual FoxPro
Category:
Databases,Tables, Views, Indexing and SQL syntax
Miscellaneous
Thread ID:
00560821
Message ID:
00561006
Views:
37
>>If there's index order set on the table foxpro has to use that index in SCAN to find next record regardless if there is or not WHILE !EOF(). The only difference WHILE !EOF() clause makes that SCAN starts processing from the current record in table not from the top.
>
>Sergey,
>
>Yep, I agree with you. And I even ran a test (thinking maybe I have been wrong for 10 years about how SCAN/ENDSCAN works), that proved it correct. Yes, it ran a bit slower with an index set (as one would expect it to). But there was no change at all whether WHILE !EOF() was used or not on the indexed scan. I even tried DO WHILE !EOF() (which I never use, but wanted to test anyway).
>
>So, I guess there's no truth to *that* rumor, Nadya. < g >
>
>~~Bonnie

Ok, one more post and I'll test it by myself :)
If it's not broken, fix it until it is.


My Blog
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform