valenok2003: I'd like to understand how to handle strings in the new mokla4. Zeroing is also the way, but it won't add understanding )))).
Probably need to write your own functions for string array since string variable is essentially a uchar array. Or convert it to uchar array and work with it. Personally, I would find it easier to write a function than to convert, process and assemble back.
The time is not being returned correctly at the moment. For example, if the time is 12.04, it returns 12.4. Can you tell me how to make this function correct?
The time is not being returned correctly at the moment. For example, if the time is 12.04, it returns 12.4. Can you tell me how to make this function correct?
Well, Hour() and Minute() return the current hour and the current minute of the last server time at the moment of program start. And the returned values are of int type. And these are just integers. So you need to format them. For example, like this:
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.
I'd like to understand how to handle strings in the new mokla4. Zeroing is also the way to go, but it doesn't add understanding ))).
I'd like to understand how to handle strings in the new mokla4. Zeroing is also the way, but it won't add understanding )))).
You have an empty string initialization there. ZeroMemory() will do that for string array.
Is there such a thing as a string array in the new version of MOCL?
Is there such a thing as a string array in the new version of MOCL?
Any array containing strings is a string array. Isn't it?
Is there such a thing as a string array in the new version of MOCL?
That's right. Help me find a description of a string array in the documentation...
Thank you
Hello.
The time is not being returned correctly at the moment. For example, if the time is 12.04, it returns 12.4. Can you tell me how to make this function correct?
Hello.
The time is not being returned correctly at the moment. For example, if the time is 12.04, it returns 12.4. Can you tell me how to make this function correct?
Well, Hour() and Minute() return the current hour and the current minute of the last server time at the moment of program start. And the returned values are of int type. And these are just integers. So you need to format them. For example, like this: