image\Dql_0023.gifConcat

Type

Text Function

Purpose

The Concat function combines two or more separate text values into one. Concat performs the same function as Jointext, but is simpler to use. Concat - short for concatenation - joins two or more strings together into a single string.

As with Jointext, leading spaces in strings are retained, but trailing spaces are truncated.

Syntax

Concat (textstring1, textstring2….textstringn).

… where textstringn continues as many times as you require

Returns

A text value up to 255 characters in length.

 

Example

Concat("My ", "name", " is", " Dave".

… would produce the string "MyName is Dave"

 

Notice that "MyName" has no space, because the trailing space in "My " was truncated. Whereas the words "Name is" are correctly spaced, because the string " is" had a leading space.

The Jointext function is retained, and can still be used.