Hi ,this is one solution.
Don’t use property ENABLED for option controls.
But the same thing you may have with this trick .
Use property TAG (Free character property) for Enabled control set this property to YES and for disabled to NO .
For option controls In When event of Option control in OptionGroup put this code
RETURN IIF(this.tag =’YES’,.T.,.F.)
Then when you wont to change the enabled state of option control s
With This.optiongroup
.Option1.Tag =’YES’
.Option2.Tag =’NO’
endwith
With this trick colors are free for settings.
This trick on the same way you may use for checkbox control and combobox (dropdownlist) or to create class for this controls with logical MyEnabled property and code in When Event
Return this.myenabled
Aco
Previous
Reply
View the map of this thread
View the map of this thread starting from this message only
View all messages of this thread
View all messages of this thread starting from this message only