AT()
Locates the position of a substring in a main string.
- Syntax
-
- AT(<cSearch>,<cString>) --> nPos
- Arguments
-
- <cSearch> Substring to search for
- <cString> Main string
- Returns
-
- AT() return the starting position of the first occurrence of the substring in the main string
- Description
-
- This function searches the string <cString> for the characters in the first string <cSearch>. If the substring is not contained within the second expression,the function will return 0.
Examples
QOUT( "at( 'cde', 'abcdefgfedcba' ) = '" +;
at( 'cde', 'abcsefgfedcba' ) + "'" )
- Status
- Ready
- Compliance
-
- This function is CA-Clipper compatible.
- Platforms
-
- All
- Files
-
- Library is rtl
- See Also