Format Method

The next component of our FIELD statement is the Format method invocation. You will see (Hex) and (Decimal). All these are Format Methods and serve to format the field value for display. As you would guess, they format hexadecimal integers and unsigned decimal integers respectively. (Formatting signed decimals requires a Retrieve method to extract the sign bit; this is an advanced topic discussed later.)

The last item is the decode label (e.g., "Command") that appears at the end of the FIELD statement. The decode label is separated from the formatted value by a colon and space. Here is a screenshot of the Decode-Pane display of a Set Actuator command:

att_0_for_972357706.png
Set Actuator Command