Update cookies preferences
Promotic

Options - method of the PmgWCombo object

Description:
Reading visible texts, hidden values or whole options from the list by the index.
Syntax:
String Options(Long nIndex, Long nType)
Parameters:
nIndex(Long) Index of the option in the list (zero-based index).
nType(Long) to be read:
0 - visible text of option
1 - hidden value of option
2 - the whole option
Note:
The option is in the form: value=text, where
- value represents the hidden value of the option (identifier),
- text represents the displayed text of the option itself.

The property returns really the displayed text (potential Macro expression $.text is already evaluated).

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

var oCombo = pMe.Items("/WCombo");
var sNameOpt = oCombo.Options(0, 0);
var sValOpt = oCombo.Options(0, 1);
PROMOTIC 9.0.31 SCADA system documentation MICROSYS, spol. s r.o.

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