Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Form Parameter
Message
 
 
To
03/12/2001 19:35:00
General information
Forum:
Visual FoxPro
Category:
Forms & Form designer
Title:
Miscellaneous
Thread ID:
00589020
Message ID:
00589021
Views:
24
>I'm passing a parameter to a form.
>How can I modify and return my parameter to my calling form without declaring a public variable.
>
>
>thanks

If the form is modal, you can do it in Unload method. Put return thisform.myVal there. You need to call your form with
do form myForm to myVal
syntax. If your form is not modal, there is a trick:

In the calling program: (just an idea):
loForm=newobject('myFormClass','myLib.vcx')
ReturnVal = loForm.myVal
loForm.release()
release loForm
In the form Cancel button you will have thisform.hide() instead of thisform.release() You also need to add Form's property for your return value.

Also see FAQ #7 and FAQ #7810
If it's not broken, fix it until it is.


My Blog
Previous
Reply
Map
View

Click here to load this message in the networking platform