Promotic
WikipediaLinkedInYoutubeTwitterFacebook

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)
Calling:
string = oCombo.Options(nIndex, 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 val=text, where val 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.12 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