PDA

View Full Version : Radio Button Question


ABC123

Tommy
02-09-2005, 09:59 AM
I am passing data from one form to another. Both forms have a radio button defined (for ex. SEX M F). I want the radio button on the form the data is passed to to reflect the setting on the parent form. The data in the field comes across fine but the buttons are all blank. What do I need to do? Thanks in advance.

Willard
02-10-2005, 05:14 PM
1.Set a global or shared variable to Gender.
In the onchange event of the radio button field change the gender variable to whatever the user selected. When the second form is loaded set it to the variable
or
2. Reference the field value of the parentform, to the new form opening. Close the first form after the second form loads. First form is named GenderNameing, the second form is called SecondGender. In the onenter event of the SecondGender form we have a code the reads SecondGender:Radio.value=GenderNameing:Radio.Value
GenderNameing.close()

Both work well.

Tommy
02-11-2005, 06:06 AM
Thanks