Home » Developer & Programmer » Forms » radio_group/get selected button
radio_group/get selected button [message #77740] Fri, 09 November 2001 01:44 Go to next message
Joe
Messages: 138
Registered: November 1999
Senior Member
hi,
is there a built-in function to get the selected button of an radio group or do i have to parse the checked property of each radio button until i've found the checked button.
thanx

----------------------------------------------------------------------
Re: radio_group/get selected button [message #77741 is a reply to message #77740] Fri, 09 November 2001 03:52 Go to previous message
Shilpa
Messages: 59
Registered: November 2001
Member
Assumptions: A radio group called RG is in a block called CONTROL. There are 2 radio buttons associated with this radio group called RB1 and RB2 and the values associated with RB1 & RB2 are 'FIRST' and 'SECOND' respectively.

IF :CONTROL.RG = 'FIRST' THEN
MESSAGE('The first radio button is selected.');
ELSIF :CONTROL.RG = 'SECOND' THEN
MESSAGE('The second radio button is selected.');
ELSE
MESSAGE('Nothing is selected');
END IF;

Hope this helps!!!

----------------------------------------------------------------------
Previous Topic: creating a new user in the database using forms
Next Topic: Webforms crashing explorer.exe
Goto Forum:
  


Current Time: Fri Mar 29 07:03:43 CDT 2024