How do you prime Radio Buttons 
Author Message
 How do you prime Radio Buttons



Quote:
> Using CW2.0

> Trying to prime a radio button when the user enters a screen from a
record
> default setting. Tried the following after opeing files (plus many other
> combinations):

> IF PER:CONV = 'B'                          ! IF DEFAULT SET TO 'B'
>   (?OPTION1:RADIO1){Event:Accepted} = True !THEN PRIME RADIO BUTTON 1
> ELSE                                               ! OTHERWISE
>   (?OPTION1:RADIO2){Event:Accepted} = True ! PRIME RADIO BUTTON 2
> .

> WHEN SELECTING THE RADIO BUTTON, RECORD IS UPDATED WITH VALUE OF 'B' OR
> 'N'.

> ALL HELP APPRECIATED,

> REGARDS, KEVIN PLUMMER

Hello Kevin!

To prime a radio button, you will need to assign a value to the use
variable of the option group which contains the radio buttons.

For example, assume you have something like this in your window

      OPTION('When dragging fields,
use'),AT(8,111,148,47),USE(VarOption),BOXED
         RADIO('Radio1'),AT(14,122),USE(?Option1:Radio1)
         RADIO('Radio2'),AT(14,133),USE(?Operator:Radio2)
       END

the code to set a specific radio button will be

  VarOption = 'Radio1'

to get ?Option1:Radio1 set to true

HTH,

Pierre Tremblay  



Fri, 25 Jun 1999 03:00:00 GMT  
 How do you prime Radio Buttons

Using CW2.0

Trying to prime a radio button when the user enters a screen from a record
default setting. Tried the following after opeing files (plus many other
combinations):

IF PER:CONV = 'B'                               ! IF DEFAULT SET TO 'B'
  (?OPTION1:RADIO1){Event:Accepted} = True      !THEN PRIME RADIO BUTTON 1
ELSE                                            ! OTHERWISE
  (?OPTION1:RADIO2){Event:Accepted} = True      ! PRIME RADIO BUTTON 2
.

WHEN SELECTING THE RADIO BUTTON, RECORD IS UPDATED WITH VALUE OF 'B' OR
'N'.

ALL HELP APPRECIATED,

REGARDS, KEVIN PLUMMER



Fri, 25 Jun 1999 03:00:00 GMT  
 
 [ 2 post ] 

 Relevant Pages 

1. How do you prime a radio button ??

2. Radio Buttons & Change Button

3. This Radio Button Isn't Like Those Radio Button in other Language!

4. Radio Buttons

5. radio button's

6. Radio button state...

7. Silly radio button problem

8. More about radio buttons and labels in VW

9. Radio Buttons

10. radio canvas/image buttons?

11. radio buttons

12. Filtering browse w/radio buttons

 

 
Powered by phpBB® Forum Software