Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
SCAN ENDSCAN does not use index tag
Message
 
 
À
21/02/2011 13:51:22
Information générale
Forum:
Visual FoxPro
Catégorie:
Autre
Versions des environnements
Visual FoxPro:
VFP 9
Divers
Thread ID:
01501106
Message ID:
01501154
Vues:
49
>>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.
>
>
>CREATE CURSOR aa (bb int)
>INSERT INTO aa VALUES (1)
>INSERT INTO aa VALUES (2)
>INDEX on BB TAG IXBB
>z=0
>SCAN
>	replace bb WITH m.z
>	z=m.z-1
>	WAIT WINDOWS RECNO() TIMEOUT 0.1
>ENDSCAN
>
Thank you, Fabio. Very cute illustration :)
"The creative process is nothing but a series of crises." Isaac Bashevis Singer
"My experience is that as soon as people are old enough to know better, they don't know anything at all." Oscar Wilde
"If a nation values anything more than freedom, it will lose its freedom; and the irony of it is that if it is comfort or money that it values more, it will lose that too." W.Somerset Maugham
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform