Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
How to return a value from a form?
Message
From
27/11/2003 10:55:58
Mike Sue-Ping
Cambridge, Ontario, Canada
 
 
To
All
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Title:
How to return a value from a form?
Miscellaneous
Thread ID:
00854035
Message ID:
00854035
Views:
53
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
Next
Reply
Map
View

Click here to load this message in the networking platform