- 4.62.2.61 -
Standard Units
System Unit
System Unit Procedures and FunctionsPos 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
|
|
|
Pi function |
Table of Content |
Pred function |
- 4.62.2.61 -