Pos |
Top Previous Next |
Prototype
IntPos:=Pos(strSub,strDest)
Description
Returns the starting position where the substring lies within a string.
Parameters
StrSub: substring position.
StrDest: string where the substring has searched for.
Returned value
IntPos: integer corresponding to the substring position in the string.
Notes
It returns 0 if the substring has not been found.
Example
// Find the position of first space in the string if Pos(' ',_CurrentFileName)>0 then ApplicationLog('Current file name has space(s) inside...'); |