Errors, bugs, questions - page 1149

You are missing trading opportunities:
- Free trading apps
- Over 8,000 signals for copying
- Economic news for exploring financial markets
Registration
Log in
You agree to website policy and terms of use
If you do not have an account, please register
Otherwise:
string var1[1][2] = {{"dfdffd", "dfdfdfd"}}
?
Greetings respected community.
I couldn't find it on the website, and I haven't understood it myself for half a day, why this code writes an error. Please tell me if you can.
Greetings respected community.
I couldn't find it on the website, and I haven't understood it myself for half a day, why this code writes an error. Please tell me if you can.
why delete an object?
The programme is actually more complex. I have already simplified it out of all proportion to see what the problem is. But I still don't understand it.
Actually the program is more complex. I've already simplified it out of all proportion to see what the problem is. But I still don't understand it.
judging by the style of the code, it can still be simplified.
Maybe I got confused in the if/else?
Greetings respected community.
I couldn't find it on the website, and I haven't understood it myself for half a day, why this code writes an error. Please tell me if you can.
The code is better readable in this layout and the error is immediately visible:
Try to understand why there is only one message and not every tick, then you won't have any questions.
judging by the style of the code, it can still be simplified. comment a bit
maybe confused in the if/else?
I have tried many variants (even in this code), not to mention the place of application. And if/else below it seems like you can remove it and the error remains.
By and large, it can be bypassed. You have to write more code checking the object after you deal with it decently. I find it easier to delete it and create it anew with the necessary parameters because its parameters are changing many times during runtime. That's what I encountered and that's why I'm asking.
This makes the code easier to read and shows the error immediately:
What's the error? Even if you know the object doesn't exist, can't you check if it exists?
And as for the design, as they say, "taste and colour..."
What's wrong with it? Even if you know the object doesn't exist, can't you check its existence?
And as for the design, as they say, "taste and colour..."
ObjectFind
Returned value
Ifthe function is successful, it returns the number of the subwindow (0 means main chart window), in which the found object is located. If the object is not found, the function will return a negative number. To get additional information about the error, call the GetLastError() function.
If the object is not found, this is an error. At that, theObjectFind function itselfwill return a negative number and the error number can be obtained.
This is more clear:
Run it in debug and see the value of variable"find"