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 default 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.
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
Dim oCombo
Set oCombo = pMe.Items("/WCombo")
Dim nIndex
nIndex = oCombo.SelectedIndex
' Reading from the property
oCombo.SelectedIndex = 2
' Writing into the property