Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
How to return a value from a form?
Message
 
To
27/11/2003 10:55:58
Mike Sue-Ping
Cambridge, Ontario, Canada
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00854035
Message ID:
00854037
Views:
16
See FAQ#7551 "How do I return a value from a form?"

>I've created a form class that has a custom property to store a string. I'd like to pass this string back to the code that instantiated a from using the CREATEOBJECT() function. I've tried the following code but cannot get the return value.
>
>
>ofrmTest = CREATEOBJECT("frmparam", "string1", "string2")
>ofrmTest.Show()
>lcChanged = ofrmTest.cReturnValue
>ofrmTest.Release()
>
>
>It appears that the form object, ofrmTest, does not exist when I try to assign the variable, lcChanged.
>
>Any ideas where I may be messing up?
>
>TIA to all that reply.
>
>Regards,
>
>Mike
Nick Neklioudov
Universal Thread Consultant
3 times Microsoft MVP - Visual FoxPro

"I have not failed. I've just found 10,000 ways that don't work." - Thomas Edison
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform