Holds a single text value. Use this for anything that isn't fundamentally numeric or true/false — program names, part numbers, status text, serial numbers, messages.
Text (a string).
StringTag supports several Transforms — unlike other types, more than one kind of operation is available:
| Transform | Syntax | Effect |
|---|---|---|
| FORMAT | FORMAT(formatString) | Wraps the value using a standard .NET format string, where {0} is replaced with the value. |
| REMOVE | REMOVE(item1,item2,...) | Strips every occurrence of each listed item from the value. Each item is either a literal in double quotes (e.g. "-") or a character code written as ASC[n] (e.g. ASC[9] for a tab character). |
| TRIM | TRIM(chars) | Removes any of the listed characters from both ends of the value. |
| TRIMSTART | TRIMSTART(chars) | Removes any of the listed characters from the start of the value only. |
| TRIMEND | TRIMEND(chars) | Removes any of the listed characters from the end of the value only. |
| ASCII | ASCII | Decodes a raw byte value as ASCII text and trims it. Takes no argument. |
Examples:
StringTag also uses the Type Attributes field (separate from Transform) as a fixed length: a number here pads the value with trailing spaces if it's shorter, or truncates it if it's longer, so the tag always holds a value of exactly that length.