Navigation: Contents   Index   Previous   Next

Pos(Substr: string; S: string): Integer

Pos searches for a substring, Substr, in a string, S. Substr and S are string-type expressions. Pos searches for Substr within S and returns an integer value that is the index of the first character of Substr within S. Pos is case-sensitive. If Substr is not found, Pos returns zero.

a=pos("sub","textsubtest")

Navigation: Contents   Index   Previous   Next



Copyright © 1998 - 2012 Paessler AG