Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Unloading form via toolbar
Message
From
03/09/2003 19:30:52
Alan Harris-Reid
Baseline Data Services
Devon, United Kingdom
 
 
To
02/09/2003 19:23:18
General information
Forum:
Visual FoxPro
Category:
Forms & Form designer
Miscellaneous
Thread ID:
00825431
Message ID:
00825866
Views:
19
Pamela, thanks for the reply.

>To what is lnFormValue scoped? When you use the toolbar to close the >form is the next line of code executed the same as when you use the >form button?
The code is something like..
LOCAL lnFormValue
DO FORM myForm TO lnFormValue
IF lnFormValue=lnAnotherValue... etc.


Problem update...

I have investigated the problem further and have now placed the same code in the click methods of both the toolbar close-button and a 'Close' button on the modal form itself.

IF _screen.activeform.queryunload()
_screen.activeform.release
ENDIF

When the form-button is pressed, the form closes and a value is returned to lnFormValue. When the toolbar button is pressed, the form closes, but no value is returned (if lnFormValue is not initialised, it doesn't even exist when control passes to the following line!) even though RETURN lnReturnValue is definitely executed in form.unload().

Any further ideas would be appreciated.

Regards,
Alan
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform