Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
How to disable an Option group
Message
 
To
All
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Title:
How to disable an Option group
Miscellaneous
Thread ID:
00815025
Message ID:
00815025
Views:
29
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
Map
View

Click here to load this message in the networking platform