Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Return a value from class form
Message
General information
Forum:
Visual FoxPro
Category:
Classes - VCX
Miscellaneous
Thread ID:
00284777
Message ID:
00285234
Views:
21
To add a little to Craig's answer, if you pass the calling form as an object

obb = CREATEOBJECT("Myclassfrm",thisform,"Para2")

the 'thisform' object can be used to update any property on the calling form.

Make a property on the new form to hold the value.

If the property is "oCallingForm", then

thisform.oCallingForm.ValueINeed = thisform.ValueIWantToReturn

HTH
Barbara

>I have a form that needs to return a value to the calling program. I have made it into a class and wish to activate it with CREATEOBJECT().
>
>I know how to return a value from a form:
> DO form MyForm With Para1,Para2 to return_value
>
>But how can I do this if the form is saved as a class??
>
>obb = CREATEOBJECT("Myclassfrm","Para1","Para2") but how to return a value??
Barbara Paltiel, Paltiel Inc.
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform