You are here: Core Reference > Coding > Scripting > Form.AddRadioButton

Form.AddRadioButton

The AddRadioButton function allows the script to add a radio button (option button) to the Form.

Syntax

Form.AddRadioButton(X, Y, Text)

Description

Adds a radio button to a Form.

Arguments

X {integer}

Represents the horizontal position of the radio button on the Form—the position on the 'X-Axis'.

Y {integer}

Represents the vertical position of the radio button on the Form—the position on the 'Y-Axis'.

Text {string}

Defines the text that is shown next to the radio button.

Returns

Radio Button Control Object

Radio Button Control Objects have common Control Object Properties as well as their own specific properties that can be used in the script (see Radio Button Properties).

Example:

Set UseLimits2 = Form.AddRadioButton(3, 2, "Use Alternate Limits")

This adds a radio button to the Form. The radio button has the words Use Alternate Limits next to it. The radio button returns a Control Object that is stored in the UseLimits2 variable that is defined earlier in the script.


ClearSCADA 2015 R2