Previous: Pi function To the Table of Content Next: Pred function

- 4.62.2.61 -
Standard Units
System Unit
System Unit Procedures and Functions

Pos function

Targets: MS-DOS, OS/2, Win32


System Unit

Searches for a substring in a string.

Declaration:
function Pos(SubStr: String; S: String): Byte;
Remarks:
Pos returns the index of the first character of SubStr in S. If SubStr is not found then Pos returns zero.

Example:
 Index := Pos('23', '123'); // Index is 2
 Index := Pos('z', 'ABC'); // Index is 0



Previous: Pi function To the Table of Content Next: Pred function
Pi function Table of Content Pred function

- 4.62.2.61 -