FindPosition (FPOS)
This function has the following syntax:
FPOS<source_string, search_string>position
This function searches for a defined substring within the "source_string" and returns its
position. If the substring is not found, the returned value is 1.
StringLength (LSTR)
This function has the following syntax:
LSTR<string>length
This function returns the length of the defined string.
StringConcatenation
This function has the following syntax:
string1 + string2string
This function allows concatenating two different strings in order to get a single string as
result.
StringDiscard
This function has the following syntax:
string1 - string2string
This function discards all the strings having the same value as "string2" which can be found
in "string1". If no "string2" is found within "string1", the result returns "string1".
InsertString (ISTR)
This function has the following syntax:
ISTR<source_string, string1, position>string
This function inserts a new string ("string1") within the "source_string" and places it in the
defined "position".
If the value of the "position" argument is longer than "source_string" length, "string1" will
be placed after the last character of the source string.
ReplaceString (RSTR)
This function has the following syntax:
RSTR<source_string, string1, string2>string
This function searches for "string1" within the "source_string". All the strings having the
same value as "string1" within the "source_string" will be replaced by "string2".
If no "string1" is found in the "source_string", the result returns the "source_string".
Examples
The string transmitted is 12345abcdef3790 and corresponds to the #DS function, as
defined in the programming language.
1. expression
SSTR<#DS,1,5> + SSTR<#DS,11,15> + SSTR<#DS,6,9>
result 12345f3790abcd
Product Reference Guide
211