List Box Buttons
104
TPDesign4 Touch Panel Design Software (v2.10 or higher)
Data List Commands (Cont.)
^LDA
Add row
Adds a new row to an existing data list. Primary data is required.
List box commands contain comma-delimited fields, but you can use commas
within the fields. Use double-quotes to surround fields in which commas are
needed.
Syntax:
"'^LDA-<list address>,<uniflag>,<primary
data>,<data2>,...'"
Variables:
• list address = address where data resides
• uniflag = indicates unicode; 0 - No unicode, 1 - Uses unicode
• primary data = the "key" data column. The information in this column provides
each row with its uniqueness.
• data2 = variable, column data information. The number of data fields is
limited only to the number of columns in the data list.
Example:
SEND_COMMAND Keypad, "'^LDA-1,0,Entry5,Meatloaf,Best
of,Anything for Love'"
Adds a text row to the data list located at address 1. The primary data is set
as Entry5. Meatloaf, Best of, and Anything for Love are all cells within the
new row.
^LDR
Remove row
Removes a row from an existing data list
Syntax:
"'^LDR-<list address>,<uniflag>,<primary data>'"
Variables:
• list address = address where data resides
• uniflag = indicates unicode; 0 - No unicode, 1 - Uses unicode
• primary data = the "key" data column. The information in this column provides
each row with its uniqueness.
Example:
SEND_COMMAND Keypad, "'^LDR-1,0,Entry5'"
Removes the text row Entry5 from an existing data list at address 1.
^LDC
Clear rows
Clears all rows in a given list.
Syntax:
"'^LDC-<list address>'"
Variable:
• list address = address where data resides
Example:
SEND_COMMAND Keypad, "'^LDC-1'"
Clears all rows in data list located at address 1.
^LDD
Delete
Deletes the data list.
Syntax:
"'^LDD-<list address>'"
Variables:
• list address = address where data resides
Example:
SEND_COMMAND Keypad, "'^LDD-1'"
Deletes the data list located at address 1.