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:
00634278
Views:
22
Hiya Pedro...

Create a property of myformbaseclase:

myformbaseclass.myreturndata (scope as N, C, or whatever return data you need)

Create UDF in myformbaseclass:
*-- myformbaseclass.returnvalue()
    RETURN myformbaseclasee.myreturndata
Then, call the form. When you are done working on your form, instead of closing the form as normal,
try:

RETURN TO MASTER
PROCEDURE activateform

 createobject(myformbaseclass,parameters)
 myformbasedclass.show

 ***-- After you issue on the form, "RETURN TO MASTER", you will be here

 myformbasedclass.hide

 luReturnValue =myformbaseclass.returnvalue()
 myformbasedclass.release

 
HTH,

Ric


>Hi to all:
>When I want to return a value from a form, I use do form myform to myvar.
>How can I do the same if I use createobject(myformbasedclass,parameters),myformbasedclass.show and myformbasedclass.release commands?
>Thanks
>Pedro
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform