My window, CSOptnFrq.fmg, has a frame, a label and:
RadioGroup_1 (“RG1”, with 3 options)
Text_1 and Text_2 (associated with RG1 options 2 & 3 respectively)
Button_1 (“Save”)
If RG1 option 1 is chosen, both text boxes should be disabled.
If RG1 option 2 is chosen, Text_2 should be disabled and Text_1 enabled for input.
If RG1 option 3 is chosen, Text_1 should be disabled and Text_2 enabled for input.
Each option could be chosen more than once before the user hits the "Save" button.
RG1 has: OnChange CSFrqChg()
Code: Select all
Function CSFrqChg()
If CSOptnFrq.RadioGroup_1.Value = 1
CSOptnFrq.Text_1.Enabled := .F.
CSOptnFrq.Text_2.Enabled := .F.
ElseIf CSOptnFrq.RadioGroup_1.Value = 2
CSOptnFrq.Text_1.Enabled := .T.
CSOptnFrq.Text_2.Enabled := .F.
ElseIf CSOptnFrq.RadioGroup_1.Value = 3
CSOptnFrq.Text_1.Enabled := .F.
CSOptnFrq.Text_2.Enabled := .T.
EndIf
Return Nil
Harbour: … Error 0030 Syntax error “syntax error at… (Usually at '.')
I’ve tried everything I can think of, without success. Any help would be appreciated!
Thanks,
CalScot