Name
Listview.Exchange -- exchange two entries
Synopsis
moai.DoMethod(id, "Exchange", pos1, pos2)
Function
Exchange two entries in a listview. The positions can be passed either as absolute values starting from 0 to Listview.Entries-1 or as one of the following special values:

Top
Use first entry.

Active
Use active entry.

Bottom
Use last entry.

Next
Use next entry. This is only valid in the second parameter.

Previous
Use previous entry. This is only valid in the second parameter.

This method can only be used with non-sortable listviews because the item order in sortable listviews is fixed and determined solely by the entries in the column that currently has the sort focus.

Inputs
id
id of the listview object
pos1
number of the first entry
pos2
number of the second entry

Show TOC