UI_GET_RADIO2 Function
Syntax
Arguments
- Result
The user selection.
- title
The title of the dialog box.
- default
Determines which radio button is selected when the dialog box first appears.
- choices
A CR-LF delimited list of choices.
- frameTitle
Optional. Default = "". The title of the frame containing the radio buttons.
Description
The UI_GET_RADIO2() function creates and displays a dialog box containing radio buttons generated by a CR-LF delimited list of up to 20 choices. The list of choices is increased is passed into the function as a single argument (a CR-LF delimited list), rather than one argument per choice, as is the case with UI_GET_RADIO(). Your response is returned as a Result that contains the text of the button that you chose when you clicked the dialog box's OK button. This function is useful for obtaining an answer to a multiple choice condition.
Example
dim list as C dim res as C list = a5.Color_Enum() list = word(list,1,crlf() ,3) res = ui_get_radio2("Pick a color","red",list,"Color Selection") ui_msg_box("Color Choice",res)
Limitations
Desktop applications only.
See Also