Information générale
Catégorie:
Codage, syntaxe et commandes
I thought I could return a variable of whatever type, including an object reference
>Addobject() is a method. It returns .t. by default, or any other value if you add there the code for return.
>
>>If I have a parameter object in a form, and pass it for the additon of a container object
>>
>>loParmeter.someproperty
>>
>>loParameter = .AddObject('container1', 'container', loParameter)
>>
>>? loParameter.someproperty
>>
>>I am told that loParameter is not an object
>>
>>the Init() for the contaner accepts the object and returns it as an object
>>
>>RETURN loParameter
>>
>>the debugger shows that it is an object
>>
>>what am I dong wrong?
>>
>>TIA
>>
>>Al
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