Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Show null values in checkbox as unchecked
Message
De
27/02/2007 09:17:42
 
 
À
27/02/2007 09:14:13
Information générale
Forum:
Visual FoxPro
Catégorie:
Gestionnaire d'écran & Écrans
Versions des environnements
Visual FoxPro:
VFP 8 SP1
Divers
Thread ID:
01199096
Message ID:
01199098
Vues:
20
>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
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform