>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