Pos

Description

Returns the position (index) of the first character of the specified substring within the specified string using a case-sensitive search. A zero value is returned if the substring is not found within the string value.

Syntax

Pos(SubString: String, String: String): Integer 

Substring is the string value for which to search.

String is the string value on which to perform the function.

Example

Pos(D,ABCDEFG)

The return value is 4.