../pvss.htm menu.gif basics.gif

"selectedPositions"

Returns or sets the numbers of the options selected in a list box.

Synopsis

setValue(string shape, "selectedPositions", dyn_int n);

getValue(string shape, "selectedPositions", dyn_int &n);

shape.selectedPos(dyn_int n);

Parameters

Description

The numbers of the selected options can be set or read with this attribute (the index starts at 1). If the list does not contain any options, the attribute returns -1.

IconExample

The following example marks the positions 3 and 5 of the selection list as selected.

main()

{

...

setValue("selectionlist1", "selectedPositions", makeDynInt(3,5));

...

}

Relates to

Combo box

See also

Top Of Page

 

V 3.11 SP1

Copyright ETM professional control GmbH 2013 All Rights Reserved