Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Nested scans
Message
From
05/02/2009 08:21:40
 
General information
Forum:
Visual FoxPro
Category:
Other
Title:
Miscellaneous
Thread ID:
01379375
Message ID:
01379416
Views:
17
>Sorry if I was vague. I have a parent table , A, which holds summarized values of transaction table, B.
>
>I scan through table A and sum all the records matching A.value. Then I store that sum qty in table A. Go to the next record in table A and then again scan table B matching A.value.
>
>The code runs with out errors, it just seems to skip records.
>When I substitute Do While - EnndDo for the Scan - EndScan, it works as I expect.
>

Use SCAN WHILE rather than SCAN FOR for the inner loop.

Tamar
Previous
Reply
Map
View

Click here to load this message in the networking platform