|
Navigation: Function Reference > General Utility Functions > pos() pos() |
Top Previous Next |
pos( find: String; source: String ) : Integer;
ansiPos( find: String; source: String ) : Integer;
Finds the position of one string within another string. If the string is not found then 0 is returned.
Parameters
find |
string value - string to find |
source |
string value - string to search |
var index: integer;
index := pos( 'dog', 'The big brown dog' );
//index is now equal to 15;