TableOtherField

Description:

TableOtherField method extracts a string from a table for display. The method extracts either of two strings according to the context in which it is to be displayed. For display in the Summary pane, the first string in the table entry is retrieved. For display in the Decode pane, the second string is used. If only one string is present, it is used in both the Summary and Decode panes. If the field value fails to match an entry in the table, the Default entry is used and the field value is displayed in decimal or optionally in hex (as specified by the second parameter). ShowHex and ShowDecimal force numeric output regardless of whether the value is matched. This is convenient for when values are synthesized from several fields and the numeric equivalent cannot be readily seen in the radix pane.

When using the Table method, the field value must be 64 bits or less in size.

Parameters:

[Required]

Table

"Which table"


[Required]

Field

"Field for lookup"


[Optional]

List

"Radix for default case"

(Default value: Decimal)

List values:

Decimal

Hex

ShowDecimal

ShowHex

Example:

FIELD UnitOfMeasure (fixed 1) (table tUnitOfMeasure) “Units”

FIELD Value (fixed 2) (decimal) ALSO (TableOtherField tUnitOfMeasure UnitOfMeasure hex) “Value”

The ALSO keyword will not insert a space so you should put leading spaces into tUnitOfMeasure if spaces are desired.