Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
What is wrong?
Message
 
 
À
18/07/2007 12:33:43
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Titre:
Versions des environnements
Visual FoxPro:
VFP 8 SP1
OS:
Windows XP
Database:
Visual FoxPro
Divers
Thread ID:
01241327
Message ID:
01241619
Vues:
31
>in your current code check
>
>FOR lnCount = _screen.FormCount TO 1 STEP - 1
>      assert _screen.FormCount=m.lnCount
>      loForm = _screen.Forms[lnCount]
>...
>
>but to be more secure go
>
>Do while _screen.FormCount>0
>     loForm = _screen.Forms[_screen.FormCount]
>
>
>regards
>
>thomas
>
>with a couple of exit branches

Thanks a lot, I solved it with do while (George Tasker's idea) with a correction by Cetin Basoz. See my other thread on the topic (as usual, I can not keep just one thread when I have a problem :))

Thanks again.
If it's not broken, fix it until it is.


My Blog
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform