>What's wrong with this line of code? > >IF thisform.Pageframe1.page1.Optiongroup1.Option2.value = .T. > > > >ENDIF > >I get a datatype mismatch. What do you use in the place of the word value?
If Option2 is an OptionButton, then the default values are numeric, not logical - a 0 indicates not selected, a 1 selected (I assume you'd use this for True) If Option2 is a checkbox, the values are 0 (unchecked), 1 (checked) or 2 (mixed value - only available in code.)