>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
ENDIF
George
Ubi caritas et amor, deus ibi est