Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Do...[Statements] while [boolean] as in C#'.Net
Message
De
23/02/2007 12:18:42
 
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Versions des environnements
Visual FoxPro:
VFP 9 SP1
OS:
Windows XP SP2
Network:
Windows 2000 Server
Database:
Visual FoxPro
Divers
Thread ID:
01198353
Message ID:
01198365
Vues:
7
>No, there is no such loop in VFP, but instead of duplicating code you could do:
>
>lbLoop = .t.
>DO WHILE lbLoop
>   ... Your Code  here
>   lbLoop = (something)
>ENDDO
>
>That is the exactly as in C++, C# - DO WHILE() construction.
>Because in the beginning lbLoop is .t. you will enter in the loop, after that at the end of the loop you must change the value of that variable to match your condition.

Very good tips everyone. I like the suggestion above, and, I do need to get into the habit of scan..endscan for operations such as the mondo-huge-data import that I was talking about earlier. Thank You!
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform