Here is a cut-down version of my fast string concatenation functions which I used in developing my DBO to X exporter program. You can edit the strings, add as many as you like as long as you call ParseString(s$) after each string initialisation. You can of course just have 1 string and set the iter variable to whatever you want to repeat the same string over and over. Managed to get this all in 14 lines.
Oh almost forgot to mention that the code produces a debugfile.text file for you to view the time it took and the concatenated string. On my PC/laptop, normal string concatenation using for .... s$=s$+"text...." next etc, can take up to 44 secs based on the same number of iterations.
The expanded version can now be viewed again on the code snippets board.
Professional Programmer, languages: SAS, C++, SQL, PL-SQL, DBPro, Purebasic, JavaScript, others