Pos

Description

Searches for a specified substring within the specified string and returns an integer value that is the position of the first character of the substring within the string. Pos is case-sensitive. If the sub string is not found, Pos returns zero.

Syntax

Pos(ASubString, AString: String): Integer 

Example

Pos(D,ABCDEFG)

The return value is 4.