Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
What would make SCAN not to work?
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Autre
Versions des environnements
Visual FoxPro:
VFP 9 SP1
Divers
Thread ID:
01532189
Message ID:
01532214
Vues:
61
You're welcome. What I didn't specify was that the index tag in question must be active for the reordering to occur; I see that you figured it out. Anyway, I'm glad I could help.

>Thank you, again. It was the problem. I now SET ORDER TO right before the SCAN and the code works.
>
>>Is the code within the SCAN/ENDSCAN changing the order of records? For example, if the cursor is indexed and the *--code changes/replaces the value of a field participating in an index key, then that may reorder the cursor.
>>Also, have you tried to see what the RECNO() is at the end of the SCAN?
>>>
>>>I have a weird situation where SCAN does not seem to scan records. Here is summary of what I see in the debugger:
>>>
>>>A CursorAdapter cursor has 8 records (I see it in the RECCOUNT( cViewName )).
>>>
>>>Then there is code
>>>SCAN
>>> *-- code
>>>ENDSCAN
>>>
>>>I thought that SCAN automatically starts with the top record so I am not doing GO TOP. But after ENDSCAN the program proceeds to the next line.
>>>
>>>What could be causing it? Or am I missing something simple? TIA
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform