Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Check Boxes - How to reference?
Message
 
To
07/04/1998 09:55:51
Jolene Dicks
Human Resources Development Canada
St. John's, Newfoundland, Canada
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00090130
Message ID:
00090168
Views:
23
>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
Previous
Reply
Map
View

Click here to load this message in the networking platform