Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Where to put form validation code?
Message
From
22/04/2004 08:31:23
 
 
To
20/04/2004 10:54:51
General information
Forum:
Visual FoxPro
Category:
Forms & Form designer
Miscellaneous
Thread ID:
00896491
Message ID:
00897171
Views:
13
>
>Have a validation condition that if it is TRUE then it's ok to leave the form normally.
>If it is FALSE then I want to return control back to the form and not exit.
>I've tried putting code in a number of methods and returning .F. but it always exits the form regardless.
>

>
>On VFP is IMPOSSIBLE
>to to force the form ( Modeless ) to remain active when a customer executes to Click on another Form.
Fabio, with all due respect - he was asking about firing method code when ONE form is closed. ONE. Not TWO, and certainly not 'another' Form.

>
>This needs to work if the user clicks on the close button in the top right corner of the form as well.
>

>
>If you test
>
>Form.ReleaseType#0
>
>on Valid or LostFocus you can known if the Form is in QueryUnload process.
>Attention, if you use Form.Release() you have a Form release without Valid/LostFocus events.
But Nick threw him a solution, and it works. What are your thoughts?
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform