Hello all, I'm learning MQL4 and I'd like to know the difference between these three ways of coding:
And, the SomethingToString is available to be used with wich operators? (DoubleToString, IntegerToString,...)
Best Regards,
Fernando.
Option 3 is wrong code....
correct code is
Alert("5 + 10 is equal to ", IntegerToString(C)); //Option 3
else, all coding return same result
Option 3 is wrong code....
correct code is
else, all coding return same result
Thanks:)
General rules and best pratices of the Forum. - General - MQL5 programming forum
Next time post in the correct place. The moderators will likely move this thread there soon.
Why did you post your MT4 question in the Root / MT5 General section instead of the MQL4 section, (bottom of the Root page?)
General rules and best pratices of the Forum. - General - MQL5 programming forum
Next time post in the correct place. The moderators will likely move this thread there soon.
Chill out Willy
Hello all, I'm learning MQL4 and I'd like to know the difference between these three ways of coding:
And, the SomethingToString is available to be used with wich operators? (DoubleToString, IntegerToString,...)
Best Regards,
Fernando.
Personally, I use StringFormat() for this sort of thing.
https://www.mql5.com/en/docs/convert/stringformat
Alert(StringFormat("5 + 10 is equal to %d", C);
- Free trading apps
- Over 8,000 signals for copying
- Economic news for exploring financial markets
You agree to website policy and terms of use
Hello all, I'm learning MQL4 and I'd like to know the difference between these three ways of coding:
And, the SomethingToString is available to be used with wich operators? (DoubleToString, IntegerToString,...)
Best Regards,
Fernando.