Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Return value from CreateObjecT('myForm')
Message
From
22/05/2005 16:36:37
 
 
To
22/05/2005 10:50:03
General information
Forum:
Visual FoxPro
Category:
Object Oriented Programming
Environment versions
Visual FoxPro:
VFP 9
Miscellaneous
Thread ID:
01016561
Message ID:
01016624
Views:
10
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.
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform