Phantom Documentation

[Help Home] [Phantom Home]
Find

int Find(string,string)

Return Type: int
Parameters: string s1, string s2

Description:
This function finds the first occurrence of s2 in s1. The 0-based index of the location of s2 in s1 is returned. The function returns -1 if the pattern is not found.

Example Code
string Test = "Phantom\n";
string sFind = "ant";
int i = Find(Test, sFind);
PrintMessage(i);


 


Copyright 2000-2011 Phantom Automated Solutions