Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Scan stops?
Message
 
 
To
23/07/2005 05:18:56
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Title:
Environment versions
Visual FoxPro:
VFP 8 SP1
OS:
Windows XP SP1
Miscellaneous
Thread ID:
01035357
Message ID:
01035386
Views:
13
>I have a scan..endscan codesnip which behaves strangely. When I use this codesnip alone with the debugger, it works fine (runs through the table). But when I put it to a .prg with other codesnips, it stops after the first record. Interestingly enough if this scan..endscan codesnip runs through a table in which the first record doesnt meet the 'for' condition of scan..endscan command, it works fine as well.

Hi Tamas,

It could happens if the table iin SCAN...ENDSCAN is ordered by index and you're changing a field which is a part of the index in the loop. It could change location of the current record in the index and, as result, skip some or all records that matchec FOR condition.
--sb--
Previous
Reply
Map
View

Click here to load this message in the networking platform