General information
Category:
Coding, syntax & commands
Title:
How to disable an Option group
Hi.
I have an option Group and I always want to disable it once I have made my selection.
I have code as follows in th Valid Event:
If opgGroup.Value = 1
This.Enabled = .F.
Endif
However, this does not cause me to leave the control, so I can click again.
(In my Valid event , I divide a control by a value and I dont want to allow repetitive divisons)
If I leave the control, it becomes enabled ok
Also, You cannot set focus in a Valid Event .
There does'nt seem to be a Lost Focus event where I could put it.
I also tried keyboarding an Enter to force me off the control but that did'nt work either.
Anybody any ideas ??
Regards,
gerard
Next
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