Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Dealing with dangling reference
Message
 
À
23/03/2012 02:31:05
Information générale
Forum:
Visual FoxPro
Catégorie:
Autre
Versions des environnements
Visual FoxPro:
VFP 9 SP1
Divers
Thread ID:
01539074
Message ID:
01539229
Vues:
60
>>
>>FOR EACH oForm in Application.Forms
>>   IF TYPE("oForm.name") = "C"
>>      oForm.Release()
>>   ENDIF
>>ENDFOR
>>
>
>This releases the odd (ffirst, third, fifth, ..) forms only.

Because of the way a collection works versus an array of object references. I had missed the use of the collection, that will do exactly what you saw.
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform