Return a substring of a TAE variable
Given a TAE variable name, this function will get the value of a specified substring and set a new TAE variable to that value.
- STRING
- Input string. The input string that the substring will be extracted from.
- START
- Starting position. The starting position in the string where the substring will be extracted.
- LENGTH
- Length of substring. The number of characters to extract from the input string. If LENGTH is zero (0), all characters from the start character to the end of the input string are extracted.
- OUT
- Output string. The substring of the input string. Its value is determined by: OUT = STRING(START:LENGTH).
The local variable temp will have the value of "ring".
A system-specific routine is called to perform the extraction, and the output value is returned to the local variable specified in OUT.
The starting character plus the length specified exceeds the length of the string. Respecify the values and rerun the program.