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:
00960091
Views:
12
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
In Close button (set its propertie Cancel to .t. so If the user press ESC to its Click Event ot be fired) just set
thisform.Release() && that will not fire QueryUnload Event of the from
Anywhere else You have thiform.Release) You must change that line to:
IF thisform.QueryUnload()
   thisform.Release()
ENDIF
Against Stupidity the Gods themselves Contend in Vain - Johann Christoph Friedrich von Schiller
The only thing normal about database guys is their tables.
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform