Promotic

SelectedIndex - property of the PmgWCombo object

Description:
Index of the selected text (zero-based index).
Syntax:
Long SelectedIndex
Note:
Property access for read and write. The preset value of this property is defined in the "Selected value" configurator of this object.
 
If no item is selected then the returned value is -1.

This property is also functional in Web panels.
See also:
Example1:
JavaScriptVBScriptSelect and copy to clipboard

var oCombo = pMe.Items("/WCombo");
var nIndex = oCombo.SelectedIndex;   // Reading from the property

oCombo.SelectedIndex = 2;   // Writing into the property
Example2:
See AddOption method.
PROMOTIC 9.0.23 SCADA system documentation MICROSYS, spol. s r.o.

Send page remarkContact responsible person
© MICROSYS, spol. s r. o.