Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Why?
Message
De
16/06/2009 04:04:02
Lutz Scheffler
Lutz Scheffler Software Ingenieurbüro
Dresden, Allemagne
 
 
À
16/06/2009 03:59:45
Information générale
Forum:
Visual FoxPro
Catégorie:
Autre
Titre:
Re: Why?
Divers
Thread ID:
01406283
Message ID:
01406284
Vues:
141
Jerry,
there is a difference between WHILE and FOR

while will stop if the first record inv=mkey is reached

IOW WHILE will not run through the whole table, FOR will.

Agnes

Update:

the first record not inv=mkey
>I wonder why these two codes show difference results:
>
>
>use sales in 0 alias sales
>select sales
>mkey='003333'
>disp PK for inv=mkey
>use in sales
>
>
>result:
>--------
>0001
>0002
>0045
>0046
>
>
>use sales in 0 alias sales
>select sales
>mkey='003333'
>seek mkey order inv
>scan while inv=mkey
>    disp PK
>endscan
>use in sales
>
>
>result:
>-------
>0001
>0002
>
>
>thanks for the help
Words are given to man to enable him to conceal his true feelings.
Charles Maurice de Talleyrand-Périgord

Weeks of programming can save you hours of planning.

Off

There is no place like [::1]
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform