FBWiki : KeyPgOpConcat

FBWiki :: Categories :: PageIndex :: RecentChanges :: RecentlyCommented :: Login/Register

Operator + (String concatenation)


Concatenates two strings

Syntax:

Usage:
result = lhs + rhs

Parameters:
lhs
The left-hand side string to concatenate.
rhs
The right-hand side string to concatenate.

Description:
This operator concatenates two strings. Unlike Operator & (String concatenation with conversion) both expressions must be strings, and may not be converted (in fact, any attempt to concatenate a string with a non-string or two non-strings will result in a type mismatch error, with the exception of when operator overloading is used in a UDT).

Examples:
Dim As String a = "Hello, ", b = "World!"
Dim As String c
c = a + b
Print c

Output:
Hello, World!


Differences from QB:

See also:

Back to String Operators
Back to Operators

There are no comments on this page. [Add comment]

Valid XHTML 1.0 Transitional :: Valid CSS :: Powered by Wikka Wakka Wiki 1.1.6.0



sf.net phatcode