Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
How can I shorten code this?
Message
De
07/01/2000 15:55:18
 
 
À
07/01/2000 15:48:30
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Divers
Thread ID:
00314481
Message ID:
00314727
Vues:
19
Thanks for correcting me, I forgot about checking the type of the field :(

The count of fields is finite, but since I want to stop as soon as I find a "Y", I prefer the DO WHILE loop option because I'm allergic to EXIT in a loop.
>Danger Will Robinson! You've gone and assumed that all fields are a character type...at least check TYPE(laStruct[lnI,1]) to make sure it's "C"
>
>Also, since the count of fields is finite, I'd probably use a FOR...NEXT loop.
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform