At 11:51 AM 8/8/2011, Patti Jakusz wrote:
... I'm using radio buttons on a form for the first time. I can't figure
out how the user can un-check the button if they checked it accidentally.
Patti,
Here's how:
Place a separate button (Bit Button or Speed Button) with the following
code as Custom EEP:
-- Uncheck Selected Item
CLEAR VAR vCommand,vItemIndex
SET VAR vCommand TEXT = NULL
SET VAR vItemIndex TEXT = NULL
GETPROPERTY cItems 'ITEMINDEX' vItemIndex
IF .vItemIndex <> '-1' THEN
SET VAR vCommand = +
'PROPERTY cRadioGroup RADIOBUTTONS[' + .vItemIndex + ']->CHECKED FALSE'
&vCommand
ENDIF
CLEAR VAR vItemIndex,vCommand
RETURN
-- Where cRadioGroup is the Component ID for Variable Radio Group Control
That's all there is to it!
Very Best R:egards,
Razzak