Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Object parameters
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Divers
Thread ID:
00914752
Message ID:
00914779
Vues:
10
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
Fil
Voir

Click here to load this message in the networking platform