Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Scan vs do while
Message
From
18/04/2007 15:19:35
 
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Environment versions
Visual FoxPro:
VFP 9 SP1
OS:
Windows XP SP2
Network:
Windows 2003 Server
Database:
Visual FoxPro
Miscellaneous
Thread ID:
01217352
Message ID:
01217442
Views:
8
Hi Naomi and Hilmar,
Here is my idea:
I have parent-child cursors and our client would like one table where certain fields from the child cursor should be in the parent cursor. So I took a scan..andscan command. In it, first, I queried the child cursor using a "where" condition with the key field from the parent cursor - I used this because there are 200,000 records in the child table, and I thought it was quicker to collect the "child" records in a separate cursor. Then I went through this cursor collecting the necessary records and put them in the parents cursor.

Tamas

>>Yes, you are right. I really messed up on this one :(
>>
>>>Look closer at the code. SCAN is done on one table and loop and skip on another. ...
>
>I had the exact same problem from the first glance, so I had to look few seconds longer. Still I'm not getting the idea.
Previous
Reply
Map
View

Click here to load this message in the networking platform