Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
New VFP feature I didn't know about. Did you?
Message
 
To
21/07/2000 13:43:37
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00395202
Message ID:
00395593
Views:
8
>THERE IS A HUGE GOTCHA WITH THIS "FEATURE"
>
>If, in the course of your scan loop the currently selected alias (not the alias you are SCANning) ends up on EOF(), then, when you hit the END SCAN you will exit the loop even though you are not EOF() on the actual alias you're scanning.
>
>ALWAYS reselect the alias you are scanning before the END SCAN
>
Christian,

Nope, at least not with 6.0 SP4. I ran the following test
lncount = 0
SELECT Test && Has 3 records
SCAN
  lncount = lncount + 1
  * This table had one record
  SELECT Test2
  GO BOTTOM
  SKIP
  * The following replaced the above in a second test
  SELECT Test3 && Zero records - EOF() = .T.
ENDSCAN
? lncount && 3 in both cases
George

Ubi caritas et amor, deus ibi est
Previous
Reply
Map
View

Click here to load this message in the networking platform