Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Check Boxes - How to reference?
Message
 
À
07/04/1998 09:55:51
Jolene Dicks
Human Resources Development Canada
St. John's, Terre-Neuve, Canada
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Divers
Thread ID:
00090130
Message ID:
00090168
Vues:
24
>I have a form with several check boxes on it. I can't seem to figure out how to reference the check box in other parts of the form. Rigth now I am using this
>
>If thisformset.form1.pageframe1.page1.check1 = .T.
> ** do whatever
>Endif
>
>What am I doing wrong? I would appreciate some help on this.

Jolene,

In addition to what Ed and Rob said, when you initially create the check box its data type is not a logical, but a numeric value. Assign it either .T. or .F. on its property sheet's value. If you don't the value will be either 0 (equally false) or 1 (equalling true).

BTW, if you do set it to a logical value, you can simplify your code by using:
IF This.Parent.Check1.Value
* Do something
ENDIF
George

Ubi caritas et amor, deus ibi est
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform