Promotic
WikipediaLinkedInYoutubeTwitterFacebook

SelectedIndex - property of the PmgWCombo object

Description:
Index of the selected text.
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

oCombo.SelectedIndex = 2;  //writing
Example2:
See AddOption method.
PROMOTIC 9.0.16 SCADA system documentation - MICROSYS, spol. s r.o.

Send page remarkContact responsible person
© MICROSYS, spol. s r. o.Tavičská 845/21 703 00 Ostrava-Vítkovice