MQL4 Reference
String functions
StringFind
| int StringFind( |
string text, string matched_text, int start=0) |
Search for a substring. Returns the position in the string from which the searched substring begins, or -1 if the substring has not been found.
Parameters:
| text |
- |
String to search in. |
| matched_text |
- |
Substring to search for. |
| start |
- |
Position in the string to start search from. |
Sample:
string text="The quick brown dog jumps over the lazy fox";
int index=StringFind(text, "dog jumps over", 0);
if(index!=16)
Print("oops!");
|
|
|