![](/images/backgrounds/158841/bg89.png)
Programming
131
TPI-PRO Total Presentation Interface - Pro Edition
List Box Commands (Cont.)
List View Commands
^LVM
Display a new position
Display a new position. If select is set, then select that new position.
Syntax:
SEND_COMMAND <DEV>,"'^LVM-<view address>,<offset>'"
Variables:
• view address = the address of the view definition
• offset = + / - numeric display shift
Example:
SEND_COMMAND Device,"'^LVM-2,-4'"
Shifts the display -4 and displays the list according to the view definitions
located at address 2.
^LVO
Display a data list according
to a preset sort/ordering view
definition.
Display a data list according to a preset sort/ordering view definition. This
command tells the view which of the possible orderings to use. Note that the
<sort> field is a bitmask, so that the 3 bit positions may be combined.
Syntax:
SEND_COMMAND <DEV>,"'^LVO-<view address>,<sort>'"
Variables:
• view address = the address of the view definition
• sort = bitmask with the following bit assignments:
0x0001 = Sort
0x0002 = Reverse
0x0004 = Filter
Note: Of special note is the reverse bit (0x0002), which reverses the list
whatever order it is currently in. When used on a sorted list, it results in a
reverse sort. When used on a reverse sorted list, it results in a forward sorted
list. In most cases, the reverse bit should not be used alone, but should be
used in combination with the sort bit (0x0003) such that it always results in a
reverse sorted list.
Possible values for the sort field:
0 = None
1 = Forward Sort
2 = Reverse the current list ordering (may or may not be sorted)
3 = Reverse Sort
4 = Filter
5 = Forward Sort + Filter
6 = Reverse current + filter
7 = Reverse sort + filter
Example:
SEND_COMMAND Device,"'^LVO-1,7'"
Displays the data list according to the view definitions located at address 1 and
filters and reverse sorts the list.