How to Enable One Check Box While Disabling the OthersLast reviewed: November 30, 1995Article ID: Q138920 |
The information in this article applies to:
SUMMARYMultiple check boxes are often necessary to gather required input. Frequently, it is desirable to disable the unselected check boxes after the first check box is selected. The example in this article illustrates how to disable the unselected check boxes in a form. Although option (also known as radio) buttons are generally the preferred of allowing users to make only once choice among a group of choices, this article provides an alternative method of doing so using check boxes.
MORE INFORMATIONThe form created by the following example contains three check boxes. When a check box is selected, its Value property is set to 1. After checking the Value property in the Click event of each individual check box, the Enabled properties of the remaining check boxes are changed to false (.F.). Changing these properties disables the check boxes.
Step-by-Step Example
Additional Notes
REFERENCESFor more information about Disabling check boxes in FoxPro 2.x, please see the following article in the Microsoft Knowledge Base:
ARTICLE-ID: Q111918 TITLE : How to Enable One Check Box While Disabling the Others |
Additional reference words: 3.00 VFoxWin
© 1998 Microsoft Corporation. All rights reserved. Terms of Use. |