What, and in what case does StringFind() return? I gave a full reference to the function from the help (although the help is right at your fingertips in the MetaEditor - just put the cursor on the function and press F1)
Artyom Trishkin: What, and in what case does StringFind() return? I gave a full footnote of the function from the help (although the help is right at your fingertips in the MetaEditor - just put the cursor on the function and press F1).
Help is open, I don't understand which line to look in, nothing is known yet, except that the name has "R" in it.
Allow the use of cookies to log in to the MQL5.com website.
Please enable the necessary setting in your browser, otherwise you will not be able to log in.
You are signed in. Two-factor authentication has been disabled. Set it up again and scan a new QR code, or continue with two-factor authentication disabled.
Hi. How do I find out the price of the object closest to the current price by the part of the name, at the beginning of "R"
The objects are horizontal bars (OBJ_TREND) with names "R 11", "R 7"...
... does not show anything like that.
.
Hello. How do you find an object by the part of the name that starts with "R"?
it doesn't find it that way.
.
The help says:
StringFind
Search for a substring in a string.
intStringFind(
stringstring_value, // string we are looking for
stringmatch_substring, //searched
intstart_pos=0// which position to start search
);
Parameters
string_value
[in] String to search in.
match_substring
[in] Match_substring to be searched.
start_pos=0
[in] Position in the string where the search should be started.
Returned value
Returns position number in the string where the substring to be searched starts, or -1 if no substring is found.
The reference reads:
Thank you, but what line are we looking in?
Thank you, but in which line are we looking?
Object name.
. there is nothing.
What, and in what case does StringFind() return? I gave a full footnote of the function from the help (although the help is right at your fingertips in the MetaEditor - just put the cursor on the function and press F1).
Help is open, I don't understand which line to look in, nothing is known yet except that there is an "R" in the name.
Like this.
There you go.
Thank you.
Greetings. Help is getting a volume return error:
I have an array created. Bid, date and volume..:
Marks: Invalid Array access