Please ensure Javascript is enabled for purposes of website accessibility
Powered by Zoomin Software. For more details please contactZoomin

AVEVA™ Plant SCADA

Reading and Writing the Selected Value at Run Time

  • Last UpdatedJul 13, 2023
  • 1 minute read

You can use the Value property that is common to all Windows common controls. It is not visible in the Properties Editor. You can use the value property in a script or other animation links.

The following table shows you the data type, a description on how the value property is used, and an example for each Windows common control.

Control

Data Type

Description

Example

Radio Button Group

Boolean, Integer, Real or String

Reads the value of the selected item, or selects the item with that value if it exists.

RadioButtonGroup1.Value = "Mixing";

Check Box

Boolean

Sets or reads the checked status.

CheckBox1.Value = 1;

Edit Box

String

Sets or reads the text contents.

EditBox1.Value = "Hello World";

Combo Box

Integer

Reads the value of the selected item, or selects the item with that value if it exists.

ComboBox1.Value = 5;

Calendar

Time

Sets or reads the selected date.

Calendar1.Value = "11/15/2006 11:12:34 AM";

DateTime Picker

Time

Sets or reads the selected date and time.

DateTimePicker1.Value = "11/15/2006 2:55:12 PM";

List Box

Integer

Reads the value of the selected item, or selects the item with that value if it exists.

ListBox1.Value = "John Smith";

Using Windows Common Controls

TitleResults for “How to create a CRG?”Also Available in