Feedback

  • Contents
 

Update Data Pair Values

This List tool updates name/value pairs in two parallel string lists. It is called many times during a TUI session and is intended for relatively short lists (100 elements or less). For large lists, use the Find tool.

Note: This tool is intended to replace a subroutine in the XML TUI interpreter.

The advantage of using parallel lists of strings is that in-line parameter expressions can be used in tools to access values referenced by name. For example, suppose you want to get the Quantity and pass it to a tool as an Integer. You can do this with no additional tools. Use the expression as follows in an Integer tool parameter:

toI(GetAt(ValueList, Find(NameList, "Quantity", 0)))

Inputs

Data Name

The the name of the data pair.

Data Value

The value for the data pair.

Outputs 

Name List

The string list containing the updated data pair names.

Value List

The string list containing the updated data pair values. 

Exit Paths

Next

This step always takes the Next exit path.