Both are similar but are accomplished in different ways. There was a time where StringConcatenate allowed for a longer resulting string and the "+" method did not. Then there was another time where it was the opposite. Currently however, I believe both have the same maximum resulting length.
As for speed or memory efficiency, I do not know which is best. One would have to measure it to see which would be faster or consume less memory.
Both are similar but are accomplished in different ways. There was a time where StringConcatenate allowed for a longer resulting string and the "+" method did not. Then there was another time where it was the opposite. Currently however, I believe both have the same maximum resulting length.
As for speed or memory efficiency, I do not know which is best. One would have to measure it to see which would be faster or consume less memory.
No, "(string)" is data-type type-casting, but it can be written to look like a function ...
string text = (string) number; // type-casting in the "c/c++" style string text = string( number ); // type-casting in MQL style, that looks like a function

- docs.mql4.com

- Free trading apps
- Over 8,000 signals for copying
- Economic news for exploring financial markets
You agree to website policy and terms of use
Hi all!
I have an EA that I sourced some additional code after the developer delivered it to me, and I've have ended up with two different ways to create strings:
What's the difference between these methods? I can't find the latter in documentation thus far.