Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Text Box Entry Restriction
Message
From
26/08/2000 21:31:48
Tom Gahagan
Alliance Computer Solutions
Thomaston, Georgia, United States
 
 
To
26/08/2000 20:42:38
General information
Forum:
Visual FoxPro
Category:
Forms & Form designer
Miscellaneous
Thread ID:
00409579
Message ID:
00409583
Views:
20
Rm....

In the textbox valid event....

if myField = 'Y' or myField = 'N'
return 1
else
messagebox('Must be Y or N',48,'Oops')
return 0
endif

If you have space you might put a label to the side of the box that says...
(Enter a Y of N) ... or something to that effect.

You might also put a ! in the format property of the textbox to assure a capital Y or N. If you do not use that you should change the valid code to look for both upper and lower case Y or N.

Hope this helps.
Tom Gahagan
Alliance
Computer Solutions

"Music, like sex, is much too important to be left to professionals."
Robert Shaw
Previous
Reply
Map
View

Click here to load this message in the networking platform