Very Fast String Concatenation

Category:
String Manipulation
Type:
Snippets
Difficulty:
Advanced
Author:
Jason Crandol

Version Compatibility: Visual Basic 6

More information:
AppendStrings uses the WINAPI copymemory function to block-copy pre-allocated string buffers. MIDAppendStrings functions similar, but uses the MID$ function, which is safe for IIS COM components.

Usage: strResult = AppendStrings(strLargeString,strSmallString,strMediumString,.....)

Instructions: Copy the declarations and code below and paste directly into your VB project.

Declarations:

Code: