Name
Listview.Select -- (de)select listview entry
Synopsis
state = moai.DoMethod(id, "Select", pos, seltype)
Function
Select or deselect a listview entry or query the selection state of an entry.

Pos can be either the number of the entry or one of the following special values:

Active
Use the active entry.

All
Use all entries.

Seltype can be one of the following:

Off
Deselect entry.

On
Select entry.

Toggle
Toggle entry.

Ask
Query selection state of specified entry. If this is set, Listview.Select returns the selection state of the specified entry (either 1 or 0).

Inputs
id
id of the listview object
pos
entry index or special value (see above)
seltype
selection type (see above)
Results
state
selection state of entry; this is only valid when using "Ask" for seltype (see above)

Show TOC