today I experienced a strange behavior while writing a script:
Initializing an array in a certain format screws up the compiler a little bit.
That is, after compiling the following code snippet the compiler shows wrong lines
when clicking on a compiler error later. i.e. when you later make a mistake in
your coding and compile it and then click on the error in the compileError window
it jumps to a line which is offset by a certain number of lines.
An example code snippet is this:
(I mean, it might not be the best style for coding. However, how would initialize
an array like this? Do I really have to do it separately for each element of the
1st dimension or is it a bug?
stringerrMsg[4][5] = {"specified file not found!", "invalid path specified!", "bad file format!", "access to file denied", "unknown error ocurred!",
"Global EA functionality switched off", "suspended on user's input", "", "", "",
"waiting for script attachment", "malfunction", "all systems OK", "", "",
"waiting for EA attachment", "malfunction", "all systems OK", """"};
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.
today I experienced a strange behavior while writing a script:
Initializing an array in a certain format screws up the compiler a little bit. That is, after compiling the following code snippet the compiler shows wrong lines when clicking on a compiler error later. i.e. when you later make a mistake in your coding and compile it and then click on the error in the compileError window it jumps to a line which is offset by a certain number of lines.
An example code snippet is this:
(I mean, it might not be the best style for coding. However, how would initialize an array like this? Do I really have to do it separately for each element of the 1st dimension or is it a bug?