Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
String Conversion
Message
From
06/08/2007 22:49:46
 
General information
Forum:
Visual FoxPro
Category:
Databases,Tables, Views, Indexing and SQL syntax
Environment versions
Visual FoxPro:
VFP 9 SP1
OS:
Windows XP SP2
Network:
Windows XP
Database:
Visual FoxPro
Miscellaneous
Thread ID:
01245922
Message ID:
01246373
Views:
27
>>And my excuse is: Bad habit. Thanks for pointing out the better function!
>>
>
>I know how difficult is to say NO to old habits (especially bad ones) :-)
>I still put GO TOP before SCAN :-)

I always use the GO TOP. If the table is on a second scan and you are not using a FOR clause, it will not scan the table.
SCAN
  <DO SOMETHING 1>
ENDSCAN

<MORE CODE>

SELECT csrTable
SCAN
  <DO SOMETHING 2>
ENDSCAN
Without a GO TOP, the DO SOMETHING 2 would never happen!
Carsten M. Thode
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform