MQL4 Reference String Functions StringFind

StringFind

Search for a substring in a string.

int  StringFind(
   string  string_value,        // string in which search is made
   string  match_substring,     // what is searched
   int     start_pos=0          // from what position search starts
   );

Parameters

string_value

[in]  String, in which search is made.

match_substring

[in]  Searched substring.

start_pos=0

[in]  Position in the string from which search is started.

Return Value

Returns position number in a string, from which the searched substring starts, or -1, if the substring is not found.