Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Simpler question - please help
Message
De
14/02/2002 16:02:21
Hilmar Zonneveld
Independent Consultant
Cochabamba, Bolivie
 
 
À
14/02/2002 15:52:58
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Divers
Thread ID:
00620339
Message ID:
00620348
Vues:
13
>Hello all once again....
>
>I have a cursor with 3 records.
>I have:
>do while !eof()
> commands
>enddo

You forgot SKIP at the end. Actually, this sort of loop is simpler with SCAN:
SCAN
   Commands
ENDSCAN
No GO TOP or SKIP required.

"Commands" should apply only to one single record, and not include an additional SKIP.

Hilmar.
Difference in opinions hath cost many millions of lives: for instance, whether flesh be bread, or bread be flesh; whether whistling be a vice or a virtue; whether it be better to kiss a post, or throw it into the fire... (from Gulliver's Travels)
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform