Hello, Alexander! Maybe the data type should have been set to string instead of int? I think you are looking for text, not a number.
Regards, Vladimir.
On the picture you can see that the StringFind function returns data with the string type , the int type , namely the number of position from which the searched string starts.
In this case, the function should have returned zero.
The picture shows that the StringFind function returns data with the string type , the int type , namely the number of position from which the searched string starts.
In this case the function should have returned zero.
I see. Thank you for the clarification. Now I have learnt a new function for me.
Why debugger counted 7 characters in txt if it should be 6? And in Set as it should be 26
Yes, yes, and this is also strange, thanks, what is wrong here, I started to check the question Yuriy Bykov, I copied from the debugger and pasted into the code, I got this picture.
Can't the highlighted in yellow have that effect? I am clarifying for the purpose of self-study.
StringFind
Поиск подстроки в строке.
int StringFind(
string string_value, // строка, в которой ищемstring match_substring, // что ищемint start_pos=0// с какой позиции начинать поиск
);
Параметры
string_value
[in] Строка, в которой производится поиск.
match_substring
[in] Искомая подстрока.
start_pos=0
[in] Позиция в строке, с которой должен быть начат поиск.
Возвращаемое значение
Возвращает номер позиции в строке, с которой начинается искомая подстрока, либо -1, если подстрока не найдена.
Is it possible to cancel the output of database connection errors? For example, the DatabaseOpen() function prints an error every time the database is locked and the function cannot access it. But this is a normal working situation for me and this problem is processed and solved and if necessary, I will catch and output this error myself.
As a result, the whole log is full of messages about the locked base.
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.
What could be wrong
Set - the string in which we are searching.
txt - what we are looking for.
why aaa = -1 ???
Hello, Alexander! Maybe you should have set the data type to string instead of int? You are looking for text, not a number.
Regards, Vladimir.
Hello, Alexander! Maybe the data type should have been set to string instead of int? I think you are looking for text, not a number.
Regards, Vladimir.
On the picture you can see that the StringFind function returns data with the string type , the int type , namely the number of position from which the searched string starts.
In this case, the function should have returned zero.
What could be wrong
Set - the string in which we are searching.
txt - what we are looking for.
why aaa = -1 ???
And why the debugger counted 7 characters in txt when there should be 6? And in Set it's supposed to be 26.
The picture shows that the StringFind function returns data with the string type , the int type , namely the number of position from which the searched string starts.
In this case the function should have returned zero.
I see. Thank you for the clarification. Now I have learnt a new function for me.
Regards, Vladimir.
Why debugger counted 7 characters in txt if it should be 6? And in Set as it should be 26
Yes, yes, and this is also strange, thanks, what is wrong here, I started to check the question Yuriy Bykov, I copied from the debugger and pasted into the code, I got this picture.
I got the hyphenation to another line from somewhere.
Thank you all for your help. I will look into it.
Can't the highlighted in yellow have that effect? I am clarifying for the purpose of self-study.
Regards, Vladimir.
Can't the highlighted in yellow have that effect? Just to clarify for self-study purposes.
Regards, Vladimir.
int start_pos=0 Default value
If you do not specify it when passing it to a function, zero will be substituted.
It is the same.
int start_pos=0 Default value
If it is not specified when passing it to the function, zero will be substituted.
It is the same.
I understand, Alexander. Now I will know.
Regards, Vladimir.
Is it possible to cancel the output of database connection errors?
For example, the DatabaseOpen() function prints an error every time the database is locked and the function cannot access it.
But this is a normal working situation for me and this problem is processed and solved and if necessary, I will catch and output this error myself.
As a result, the whole log is full of messages about the locked base.
answer the question, please
I think fxsaber has posted a bootloader and a description of how to use it, but I don't remember where and how.
If I'm not mistaken, you need to put it in the terminal folder C:\Users\username\AppData\Roaming\MetaQuotes\Terminal\E98C5173D8A802F9B8F133E800FDDE2B.
And run the botnick every time before starting the terminal.
The solution is not particularly convenient, but if there is no other, then ...
Shit. First I posted it, and then I saw that the botnik is for banning logs in the tester.
Sorry, I can't help you.