Information générale
Catégorie:
Codage, syntaxe et commandes
>David,
>
>Let's say you do this: oMyObj=CREATEOBJECT('MyContainerClass'). Now to refer to the container, you would ues oMyObj (the object variable), to refer to an object named ObjName contained in that container, use oMyObj.ObjName.
>
>>In the VFP Help under Name Property is the note:
>>Note If the object is the first object in the object hierarchy (that is, the outermost container object), use the object variable to reference the object instead of the Name property.
>>
>>Can someone explain just what that means?
That all makes sense. I was thinking of "forms" at the time. Does that mean we can't or shouldn't refer to a form by name?
Thanks and TIA
Précédent
Suivant
Répondre
Voir le fil de ce thread
Voir le fil de ce thread à partir de ce message seulement
Voir tous les messages de ce thread
Voir tous les messages de ce thread à partir de ce message seulement