LogiView

Functions and Commands

Editing Strings

     

The following functions are available to edit string expressions:

scan {INT_VAR}=scan({STR_EXPR},{STR_EXPR},{VAR_LIST})
This function splits a forwarded string into individual substrings which are assigned to corresponding variables according to the type by means of conversion. The result is the number of successfully assigned variables.
split {INT_VAR}=split ({STR_EXPR}, {STR_VAR}) oder
{INT_VAR}=split({STR_EXPR}, {STR_VAR}, {STR_EXPR})
This function splits the forwarded string expression and assigns the individual substrings to the specified string array. The result of this function is the number of assigned substrings.
strcat {STR_VAR}=strcat({STR_EXPR_LIST)
This function combines two or more string expressions (catenation). The result of the function is the catenated string.
strchr {INT_VAR}=strchr({STR_EXPR},{STR_EXPR})
This function returns the location of the first occurance of a search string in a string to be examined. If the substring is not contained in the searched string, this function returns the value zero.
strlen {INT_VAR}= strlen({STR_EXPR})
This function returns the number of characters in a string expression.
strlower {STR_VAR}= strlower({STR_EXPR})
This function converts a character string into lower-case characters.
strpart {STR_VAR}= strpart({STR_EXPR},{NUM_EXPR},{NUM_EXPR})
This function returns a substring. This function requires information on the start position and the length of the desired substring.
strprint {STR_VAR}= strprint({STR_EXPR},{EXPR_LIST})
This function returns a string created by converting and formatting of the forwarded arguments under the control of a format character string.
strsub {STR_VAR}= strsub({STR_EXPR},{STR_EXPR},{STR_EXPR})
This function is used to replace a substring in a string expression by another substring. The result of the function is the changed new string.
strupper {STR_VAR}= strupper({STR_EXPR})
This function is used to convert a character string into upper-case characters.