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); |