Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Dealing with dangling reference
Message
 
 
Information générale
Forum:
Visual FoxPro
Catégorie:
Autre
Versions des environnements
Visual FoxPro:
VFP 9 SP1
Divers
Thread ID:
01539074
Message ID:
01539088
Vues:
38
>>>>>>>>You can not use FOR EACH oForm loop
>>>>>>>>if you're closing the forms (removing from the collection). You need to use FOR loop starting from the last form. Please check again the FAQ.
>>>>>>>
>>>>>>>Just to be sure, you are suggesting the code example written by Nick Necliodov, right?
>>>>>>
>>>>>>I like more the very first sample with the QueryUnload check.
>>>>>
>>>>>I have added the QueryUnload check to the Nick's routine. The very first sample does not seem to be looping starting with the bottom (as you suggested). This threw me off.
>>>>
>>>>Right, but it is another way of looping.
>>>
>>>The good thing is that with the change I am not getting the error. Thank you!
>>
>>You're welcome. I made that mistake (for each ..) once myself.
>
>Now I don't feel so bad myself :).

Re: For each doesn't release all forms? Thread #1241310
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