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:
01539141
Vues:
50
>>
>>FOR EACH oForm in Application.Forms
>>   IF TYPE("oForm.name") = "C"
>>      oForm.Release()
>>   ENDIF
>>ENDFOR
>>
>
>I didn't try using type("oForm.name"); could have been the solution. But I change it completely. Thank you; I will remember this for the next time.

No, it can not be a solution. It does not work with FOR EACH, we already discussed that!

You can not use FOR EACH and remove objects from a collection.
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