Quote:
Originally Posted by bstyle
Ok and why is this method better than using StrCat?
|
Since StrCat() itself calls Fromat(), you are calling Format() twice, once to format the string and then again to concatenate it to the big string, which also increases the amount of work done since it has to physically copy the new string to the end of the big string.
Using the method I posted, Format is only called once to tack the new string onto the end of the existing big string. It also avoids having to copy the contents of the new string to the end of the big string after formatting it, since it is already there.