Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Show null values in checkbox as unchecked
Message
From
27/02/2007 09:17:42
 
 
To
27/02/2007 09:14:13
General information
Forum:
Visual FoxPro
Category:
Forms & Form designer
Environment versions
Visual FoxPro:
VFP 8 SP1
Miscellaneous
Thread ID:
01199096
Message ID:
01199098
Views:
19
>Greetings,
>
>I have a checkbox on a form and I would like that checkbox to be unchecked if the value in the field is either zero or null. Currently when the value is null it shows the checkbox in the third state and it is confusing users. I thought there was a way to just have the checkbox behave with two states checked or unchecked but I can't seem to find the property.
>
>Thanks in advance.
>
>Greg

You can set Checkbox.Value programmatically, e.g.:
IF ISNULL(mytable.myfield)
  Thisform.Check1.Value=0
ENDIF
Edward Pikman
Independent Consultant
Previous
Reply
Map
View

Click here to load this message in the networking platform