Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Forms: Radio group problem

Status
Not open for further replies.

scomfort

Programmer
Dec 3, 2003
44
GB
I've created a radio group which returns a value to an item that the radio group belongs to fine. However is there anyway of returning a different value to a different item at the same time?
 
Put some code in the WHEN-RADIO-CHANGED trigger that copies value x into item y when the radio group selection is z.
 
Sounds good although I've not used that trigger before so not sure what coding should be applied?
The radio group is assigned to "mychoice" item which is in the choice block. The return value specified in property attributes will be returned to this item. Another value "n" I would like returned to an item "early" in a block called slots if that particular radio button is pressed (i.e. using that trigger you suggested).
 
Just code something like this into your WHEN-RADIO-CHANGED trigger:

[tt]IF :choice.mychoice = 'X'
THEN
:slots.early := 'N';
ELSIF :choice.mychoice = 'Y'
THEN
:slots.early := 'Z';
.
.
END IF;[/tt]
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top