Is there any advantage of using named Constants instead of Error Integer Value?
Readability, and in case (very probable not to happen) the value actually changes, you don't have to fix your code. - So if MQ decides to assign new numbers to the errors, the named constants will update automatically. All you would require is a recompile, but not an editing.
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.
Like this?
Almost. You are using the integer values 0 and 4000. You should be using the named constants.
I didn't understand?. Named Constants? Can you explain me or give me sample/example code. So, i can write my code based on it.
Got it. Thanks for clarification.
Is there any advantage of using named Constants instead of Error Integer Value?
Got it. Thanks for clarification.
Is there any advantage of using named Constants instead of Error Integer Value?