Programming the Mio R-4
List Box Commands (Cont.)
List View Commands
^LVO 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 no matter what 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.
^LVP Display a new position. If the select option is set, then select that position.
Syntax:
SEND_COMMAND <DEV>,"'^LVP-<view address>,<index>'"
Variables:
• view address = the address of the view definition
• index = the row number in sequential order (first row is 1)
Example:
SEND_COMMAND Device,"'^LVP-5,3'"
Sets the display position starting at the third row and displays it according to the view definitions located at
address 5.
^LVS Set the column order for sorting. Update must be called for changes to take effect.
Syntax:
SEND_COMMAND <DEV>,"'^LVS-<view address>,<column>,<column>…'"
Variables:
• view address = the address of the view definition
• column = the starting column number (first column is 1)
Example:
SEND_COMMAND Device,"'^LVS-3,5,2,1'"
Sets the column sort order to column 5 first, then column 2 and then column 1. The data list is displayed
according to the view definitions located at address 3.