Visual Basic .NET/String and character operators

String concatenation
The "&amp;" operator joins two strings together. Example:

This will result in String3 being equal to "123456"

The "+" operator may be used in place of "&amp;". However, it is not recommended.

Concat
You may concatenate a number of strings:

If you have defined a string array, such as:

then all the elements of this array may be concatenated in a simple way:

String manipulations functions

 * Lcase: converts in higher case.
 * Ucase: converts in lower case.

To create some substrings, the VB6 functions are still available:
 * Left: left part.
 * Right: right part.
 * Mid: middle part.
 * InStr: substring location into a string.
 * Replace: replace a substring by another one.

Visual Basic .NET/Chaines de caractères