FUNCTION xpfFindCharInString (str : STRING; char : STRING(1) FIXED; startIndex : INTEGER); indexOfMatchingChar : INTEGER;
The function xpfFindCharInString searches a string str for the character char. The argument startIndex (starting from one) defines the index in str to start searching for char. The first character in a string has the index of one. If char is found in str then the index of the character char in str is returned as the function value. If char is not found in str zero is the returned function value.
Arguments
Type | Name | Comment |
STRING | str | Input string |
STRING(1) FIXED | char | The character to be searched for |
INTEGER | startIndex | index of the character in the string |
Return Value
Type | Name | Comment |
INTEGER | indexOfMatchingChar | Index of the first occurrence of the given character |
Options
Example
<Missing Example>
See also
Filter by label
There are no items with the selected labels at this time.