Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
SCAN ENDSCAN does not use index tag
Message
 
 
Information générale
Forum:
Visual FoxPro
Catégorie:
Autre
Versions des environnements
Visual FoxPro:
VFP 9
Divers
Thread ID:
01501106
Message ID:
01501114
Vues:
68
>>>Hi,
>>>
>>>I have been getting some conflicting results in my code and want to make sure that SCAN .. ENDSCAN does not respect current index tag, right? That is, if I set new values in the field of the currently selected index TAG during the SCAN .. ENDSCAN the record pointer will not move back or forward but rather will go through each records.
>>>Is this correct?
>>>
>>>TIA.
>>
>>SCAN does respect the currently set tag.
>
>Thank you for clarifying. No wonder I was running into a problem.

I was just trying to update with more info:

SCAN does respect the currently set tag. It means, if you have a filtered index, the records will be excluded. Also, the record pointer will be moving in the order of the current TAG.

Usually it's a good idea to issue

SET ORDER TO

before running SCAN

(Unless you want to use SCAN WHILE ..)
If it's not broken, fix it until it is.


My Blog
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform