String concatenation

 
Hello,

I have a string variable in my program to which I concatenate many-many numbers, in a loop similar to this:

for (int i = 0; i < numElems; i++)
{
   line = line + "," + array[i];
}



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

 
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 (+).