Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Return value from CreateObjecT('myForm')
Message
De
22/05/2005 16:36:37
 
 
À
22/05/2005 10:50:03
Information générale
Forum:
Visual FoxPro
Catégorie:
Programmation Orientée Object
Versions des environnements
Visual FoxPro:
VFP 9
Divers
Thread ID:
01016561
Message ID:
01016624
Vues:
11
Hi, Christian

Thank you for your answer. I was afraid that's the only way... bummer. I don't get it. If the form it's in a scx, it is possible. If the form is in a vcx, is not. Why the behavior depends on the implementation? Is this OOP? What kind of oop? One of a kind, I guess.... :((

>Hello,
>
>not directly ..
>
>since you calling the Function createobject, but you can pass a parameter object to the form ..
>
>e.g.
>Form::Init(loParameters)
>THIS.oParams = loParameters
>
>Form::Unload()
>THIS.oParams.someProperty = "yourReturnValue"
>
>---
>LOCAL yourForm, loRetVal
>loRetVal = CREATEOBJECT('yourParameterObject')
>yourForm = CREATEOBJECT('yourForm',loRetVal)
>?loRetVal.someProperty
>
>Regards
>Christian
Grigore Dolghin
Class Software.
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform