See "MQL4: StringConcatenate"
Forms a string of the data passed and returns it. Parameters can be of any type. Amount of passed parameters cannot exceed 64.
Parameters are transformed into strings according the same rules as those used in functions of Print(), Alert() and Comment(). The returned string is obtained as a result of concatenate of strings converted from the function parameters.
The StringConcatenate() works faster and more memory-saving than when strings are concatenated using addition operations (+).
Forms a string of the data passed and returns it. Parameters can be of any type. Amount of passed parameters cannot exceed 64.
Parameters are transformed into strings according the same rules as those used in functions of Print(), Alert() and Comment(). The returned string is obtained as a result of concatenate of strings converted from the function parameters.
The StringConcatenate() works faster and more memory-saving than when strings are concatenated using addition operations (+).
![MQL5 - Language of trade strategies built-in the MetaTrader 5 client terminal](https://c.mql5.com/i/registerlandings/logo-2.png)
You are missing trading opportunities:
- Free trading apps
- Over 8,000 signals for copying
- Economic news for exploring financial markets
Registration
Log in
You agree to website policy and terms of use
If you do not have an account, please register
I have a string variable in my program to which I concatenate many-many numbers, in a loop similar to this:
Is there any limit on the number of characters that we can add this way to a string?
Is this way of concatenating to a string efficient? If not, what better option exists?
Best regards,
Levente