Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Return value from a form based class
Message
General information
Forum:
Visual FoxPro
Category:
Classes - VCX
Miscellaneous
Thread ID:
00634255
Message ID:
00636821
Views:
16
Wouldn't this work only if the parameter is passed in by reference ... or have I missed something?

>Pedro,
>
>I use this method, which works for me...
>
>
>* in the calling form...
>private myParameter
>myParameter = .f.
>
>oForm=create('customform',myParameter)
>
>** Then in customform's init method, assign the value to property of same name...
>
>*** CUSTOMFORM::INIT
>Parameters MyParameter
>thisform.myParameter=myParameter
>
>* Then set the value of This.myparameter as necessary in your form.
>* In the form's Unload event, just put in...
>** CUSTOMFORM::UNLOAD
>MyParameter = thisform.myParameter
>
>
>
>... and the value will be returned to the calling form.
>This assumes the form you're calling is a modal form, of course. You can play around with this, but by making it a private variable, you mightn't even need to have the parameter statement in the init method.
>
>Rgds
>MR
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform