Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Objects vs. Controls/Columns/etc. collections
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Programmation Orientée Object
Divers
Thread ID:
00661704
Message ID:
00666302
Vues:
22
Armin,

The Objects[] and Controls[] collections will only ever have contained objects in them, those dropped onto the form at design time, or created at runtime via AddObject() method calls.

Any object that is created via CreateObject() or NewObject() and assigned by reference to an object property are not "contained" by the object so they will not be in the Objects[] collection. You can use amembers() to get to these kind of objects.

>Ok, but this only applies to _VFP.Objects. If you have a look at the content of the Objects collection in _SCREEN, forms, containers, etc., you will notice that you only get the objects that are direct children of the container. No other objects, e.g. objects created and stored in a property of a form are in there. Or am I missing something?
df (was a 10 time MVP)

df FoxPro website
FoxPro Wiki site online, editable knowledgebase
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform