Fortunately, Microsoft has included the solution to the
string concatenation problem within the Framework itself. This solution is in
the form of the StringBuilder class, which may be found in the System.Text namespace.
If you are experiencing performance problems with code that
performs a lot of string concatenation, then this optimization technique is
well worth considering. Note that a similar technique can also be used with
ASP/VBScript and Visual Basic 6.0. You can either write your own string
builder class or use a search engine to find a prewritten algorithm. This article
describes how to implement an equivalent to the StringBuilder class in both
VBScript and Visual Basic 6.0.