Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Text Box Entry Restriction
Message
 
To
27/08/2000 19:41:36
Cindy Winegarden
Duke University Medical Center
Durham, North Carolina, United States
General information
Forum:
Visual FoxPro
Category:
Forms & Form designer
Miscellaneous
Thread ID:
00409579
Message ID:
00409662
Views:
20
Hi Cindy,

The check box can have a third state - greyed-out or unknown. If the control source is numeric, a value of 2 will put it in this state. If the control source is logical, a .null. will put it in that state. For yes/no answers, a check for isnull will tell whether the user has answered the question.

Another alternative is to use an option group. Setting the initial value to 0 will mean that no answer is selected. You can ensure that the value of the control is >0 before allowing the user to leave the form.

Cheers,

Andrew




>>>VFP 6.0 . I need to restrict the entry of a text box on a form to a "Y" or "N" entry. Is there an easy way to restrict the text box entry. The user must not be able to skip the field without a valid entry.
>>>
>>>TIA
>>>
>>>Rob
>>
>>Perhaps a checkbox? That's the proper control for a true/false.
>
>Craig,
>
>One of the problems with that (from my clinical trials days when everything was super picky) is that you can't tell the difference between a skipped answer and .F.


If we were to introduce Visual FoxBase+, would we be able to work from the dotNet Prompt?


From Top 22 Developer Responses to defects in Software
2. "It’s not a bug, it’s a feature."
1. "I thought I fixed that."


All my FoxTalk and other articles are available on my web site.


Unless specifically identified otherwise, anthing posted here is purely my opinion and may or may not reflect the policies or practices of Microsoft.
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform