Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Does SCAN always go to the top of the cursor?
Message
De
05/03/2018 11:09:54
 
 
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Divers
Thread ID:
01658080
Message ID:
01658536
Vues:
111
>Hi,
>
>I was under impression that SCAN always goes to the top of the cursor. Am I mistaken?
>
>I have a code where the record pointer of a cursor is on the 2nd record (the cursor has two records). Then, I call SCAN, update this record, and ENDSCAN. When I go through the code with the debugger, the SCAN/ENDSCAN exists right after the first/current/second record.
>
>Is it required that I do GO TOP before SCAN?
>
>TIA
seek "mykey"
scan rest while myfield="mykey"
endscan
or use "locate" intead of "seek"
"Now to him who is able to do immeasurably more than all we ask or imagine, according to his power that is at work within us, Ephesians 3:20
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform