Operator & (String Concatenation With Conversion)

Concatenates two strings, converting non-strings to strings as needed

Syntax
	KeyPgDeclareDeclare KeyPgOperatorOperator & ( KeyPgByrefByRef lhs KeyPgAsAs T, KeyPgByrefByRef rhs KeyPgAsAs U ) KeyPgAsAs V

Usage
	result = lhs & rhs

Parameters
	lhs
		The left-hand side expression to concatenate.
	T
		Any standard data type or user-defined type that can be converted to 
		a standard data type.
	rhs
		The right-hand side expression to concatenate.
	U
		Any standard data type or user-defined type that can be converted to 
		a standard data type.
	V
		The resultant string type (varies with operands).

Description
	This operator concatenates two expressions. If either of the expressions 
	is not a string type, it is converted to KeyPgStringString with KeyPgStrStr.

	If either of the expressions is a KeyPgWstringWString, a KeyPgWstringWString is returned, 
	otherwise a KeyPgStringString is returned.

	This operator can be overloaded to accept user-defined types.

	Note: This operator exists in C/C++ with a different meaning - there it 
	performs a bitwise KeyPgOpAndAnd.

Example
	Dim As String A,C
	Dim As Single B
	A="The result is: "
	B=124.3
	C=A & B
	Print C
	Sleep

Output:

	The result Is: 124.3

Differences from QB
	* New to FreeBASIC

See also
	* KeyPgOpConcatOperator + (String Concatenation)
	* KeyPgStrStr

