Update cookies preferences

Options - method of the PmgWCombo object

Reading visible texts, hidden values or whole options from the list by the index.
String Options(Long nIndex, Long nType)
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
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:
See AddOption method.
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.28 SCADA system documentation MICROSYS, spol. s r.o.

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