Overview

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.

Value

Text (a string).

Transform options

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:

  • FORMAT(Program: {0}) on a value of MAIN01 produces Program: MAIN01.
  • REMOVE("-",ASC[9]) strips every hyphen and every tab character from the value.
  • TRIM( ) (a single space between the parentheses) removes leading/trailing spaces.

Type Attributes

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.

Notes

  • Capture Changes Only behaves as an exact text comparison for StringTag — Change Tolerance doesn't apply.