Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Form return value
Message
From
07/08/2007 14:11:33
 
 
To
06/08/2007 21:58:08
Alan Harris-Reid
Baseline Data Services
Devon, United Kingdom
General information
Forum:
Visual FoxPro
Category:
Forms & Form designer
Miscellaneous
Thread ID:
01246371
Message ID:
01246558
Views:
75
Call the form after initializing the value to something that would not be returned:
LOCAL lcReturnValue
lcReturnValue = "No Return Value"
DO FORM MyForm WITH var1, var2, var3 TO lcReturnValue
IF lcReturnValue = "No Return Value"
  * Form did not return a value -- cancelled in Init event
ELSE
  * Form executed and returned a value
ENDIF
Then if you do not want the form to display, execute

RETURN .F.

in the Init event of the form.
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform