Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Using return in the valid process
Message
General information
Forum:
Visual FoxPro
Category:
Forms & Form designer
Environment versions
Visual FoxPro:
VFP 8 SP1
OS:
Windows '98
Miscellaneous
Thread ID:
00960046
Message ID:
00960097
Views:
11
Borislav

I think the whole point is that he doesn't want to return .F.

>You may set the InputMask of that TextBox to "Y" it allows to user to input ONLY "Y","N", "y", "n". If You want to validate the record put the check of the whole form in some separate method i.e. thisform.AllOK(). In QueryUnload event of the form put:
>
>IF .NOT. ThisForm.AllOk()
>   NODEFAULT
>   RETURN .f.
>ENDIF
>
>
- Whoever said that women are the weaker sex never tried to wrest the bedclothes off one in the middle of the night
- Worry is the interest you pay, in advance, for a loan that you may never need to take out.
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform