strFind (Function) |
Top Previous Next |
strFind will search for a string within another string. It will return the start position of "str2" in "str1" if str2 was found in str1 - otherwise it will return 0. It is possible to search for the string without case sensitivity - that is to say that "abc" will be the same as "ABC" if no case checking is done (see input parameter CheckCase).
Please note that if either str1 or str2 is empty, this function will return 0 (not found).
Input: str1 : STRING String to search in.
str2 : STRING String to search for.
start : int Default:1 Position in "str1" where the search for "str2" starts.
CheckCase : BOOL Default: FALSE TRUE if the search should be case-sensitive.
Returns: INT The start position of "str2" in "str1", 0 if "str2" was not found.
Declaration: FUNCTION strFind : INT;
Example: INCLUDE rtcu.inc |