Admin Production ni-theme
Current Publication

GetSelectedRadioButtons

LabWindows/CVI

GetSelectedRadioButtons

int GetSelectedRadioButtons (int panelHandle, int *activeButton, int numButtons, ...);

Purpose

This function determines which button from a group of radio buttons is in the On state. Use the SetSelectedRadioButtons function to set the radio button to the On state.

Note  This function affects radio buttons on a toggle button control, not the radio button group or the flexible radio button group. Because the radio button group and flexible radio button group controls are configured to look and behave like a group of mutually exclusive radio buttons, consider using those controls and associated functions instead of this function.

Parameters

Input
Name Type Description
panelHandle int The specifier for a particular panel that is currently in memory.

You obtain the handle by calling the LoadPanel, NewPanel, or DuplicatePanel function.
numButtons int Specify the number of radio buttons that you pass in the listOfAllRadioButtons parameter.
listOfAllRadioButtons ... Pass a comma separated list of control IDs for each radio button in the radio button group.
Output
Name Type Description
activeButton int Returns the control ID of the radio button that is in the On state.

Return Value

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

Additional Information

Library: Programmer's Toolbox

Include file: toolbox\toolbox.h

LabWindows/CVI compatibility: LabWindows/CVI 6.0 and later