Information générale
Catégorie:
Codage, syntaxe et commandes
Yuri,
Yes, I am suspecting that is my problem, or part of it. The return should come from the form.AddObject, but should I modify the form.AddObject method to accept another parameter and then dodefault with that parameter, and return the dodefault() to an object variaable in the form method, and then return it to my form Init()
Whew, that sounds at least as confused as I am!!
Al
>Yours: "the Init() for the contaner accepts the object and returns it as an object"?
>Looks like you do not return it from the FORM.addobject method, right?
>
>
>
>>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