Read-StringElement

Determines an element from a character string separated by separators and stores it in a variable.


Settings:

  • List of strings
    The character string from which an element is to be selected.
  • Separator
    The character that separates the individual elements in the string. There are two options:
    • Search for the individual characters
      If several characters are entered as separators, each individual character is interpreted as a separator.
    • Search for the string
      If several characters are entered as separators, only the entire string is interpreted as a separator.
  • Index
    Specifies which element is to be read. The character string is evaluated from the left; counting starts at 0 (0 = first element).
  • Store result in
    Name of the variable in which the read out substring is to be stored. Specify only the name of the variable, not the $ sign and the curly brackets.


Example:

The example below determines from a process list stored in the _ProcessList variable and separated by a semicolon, the name of the currently viewed process at the position stored in the _ProcessCounter variable and stores it in the _CurrentProcess variable:


Corresponds to DSM eScript command:

  • StrGetElement


See also: