Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Need Scan..EndScan code help
Message
 
 
To
11/12/1998 13:32:32
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00166652
Message ID:
00166754
Views:
12
>>Sure you can change WA in a SCAN, you just need to make sure the original table to be scanned is the currently selected WA before the ENDSCAN. Which is where your problem lies. You really mean to scan oTemp from the looks of it. So oTemp should be before the SCAN command.
>
>Actually, SCAN takes care of the reselecting for you. There is no need to reset the WA before the ENDSCAN.

Interesting. Learn something new every day. I am a natural skeptic, so no matter what MS tells me or what my own future testing indicates, I will probably still explicitly reselect to the scanned table right before the ENDSCAN if I switched WAs. It's a peace-of-mind [and readability] kinda thing. :)
Mark McCasland
Midlothian, TX USA
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform