# SetSelectedRadioButtons

int SetSelectedRadioButtons (int panelHandle, int activeButton, int numButtons, . . .);

## Purpose

This function ensures that only one radio button in a group of radio buttons in a CVI user interface is set to the On state.

Specify the active button and a list of buttons. This list of buttons can also include the active button.

The active button is set On and all other buttons are set Off.

## Parameters

Input
Name | Type | Description
panelHandle | integer | The specifier for a particular panel that is currently in memory. You obtain the handle by calling the LoadPanel, NewPanel, or DuplicatePanel function.
activeButton | integer | Pass the control ID of the radio button that you want to set to the On state.
numButtons | integer | Specify the number of radio buttons that you pass in the listOfAllRadioButtons parameter.
listOfAllRadioButtons | any type (passed by value) | Pass a comma separated list of control IDs for each radio button in the radio button group.

## Return Value

Name | Type | Description
status | integer | Returns a negative error code if an error occurs.