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

Industrial Graphic Editor

Read and write the selected value at runtime

  • Last UpdatedJul 05, 2024
  • 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 the data type, a description of 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";

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