Originally Posted by
Randall
Regarding string concatenation, if I needed to build a large string by concatenating a number of smaller strings, would it be more efficient to first allocate a static string sufficiently large to hold the completed string, and use the MID$ statement to replace sub-strings?
Of course, you would have to keep track of the length of your string, so you can increase the buffer if necessary and know where to trim it when you are done building.
Seems this would avoid having to reallocate memory for every concatenation.
Bookmarks