This function finds the specified text string(1) within another text string(2) and returns the number of the starting position of the specified text string(1) from the first character of the another text string(2).
FINDB(findtext,intext,start)
This function has the following arguments:
Argument | Description |
---|---|
findtext | Refers to the text you are trying to find. If the value is empty (" "), the function matches the first character in the search string (i.e. the character numbered start or 1). This value cannot contain wildcard characters. |
intext | Refers to the text through which you are searching. |
start | [Optional] Refers to the number representing character at which to start the search. The first character of intext is 1; if omitted, the calculation starts at 1. If this value is not an integer, the number is truncated. |
The FINDB function counts 2 bytes per character, but this happens only when a DBCS language is set as the default language.
This function performs a case-specific search (for example, to specify a capital letter and not lower case letters).
Accepts string data for the findtext argument, string data for the intext argument, and numeric data for the start argument. Returns numeric data.
FINDB("ea","rheabuto") gives the result 3.
FINDB("to","rheabuto") gives the result 7.