Simplicty and flexibility!


Function::String

ConCat
ConCat(Field1,Field2,....,FieldN)
ConCat(texststring1,texststring2,....,texstringN)


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.


Parameters


Any number of fields or strings. Fields will automatically be converted to correctly formatted strings by ConCat, so you can create a string from any DataEase fields this way. 

If you want to input a fixed value this value need to be quoted "my string".

Returns/Result


Text String up to 255 characters long.

Examples


Example 1


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

Result:  My name is Dave

Example 2


Concat("The time is: ",current time," and the Date is: ", current date)

Result: (Now!): The time is: 20:44:03 and the Date is: 10/12/2012



Reference

Concat

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.

See Also


JoinText
MemoCopy
MemoMemoCopy

On the forum about ConCat

StringReplace(), CHR(), LastC() and ConCat() used to reformat number to export number

Download Sample This is quite straightforward but as it again showcase some of our new functions we'll happy to showcase it. We simply added th...

Product: Dataease [{8}]FIVE. Written by DataEase 28/02/15 at 15:00:40

Concat all the occurences of one field in a related table

Hi there,here's the problem. I have the form "Conductors" that is related to the form "Offer_row". A "Offer_row" record can have one or more records related in the "Conductors" table. Any record in "Conductors" has a field called "Color". I hav...

Product: Dataease [{8}]FIVE. Written by George Washington 23/03/16 at 10:43:06

Re:Concat all the occurences of one field in a related table

Yes.&nbsp;You don't explain very well if you are wanting to show this in the subform, or if Offer_Row is a Main form record.It is easier if it is a Main Form as you will be able to insert the result of the EXECDQL directly in the field.<...

Product: Dataease [{8}]FIVE. Written by DataEase 24/03/16 at 08:48:27

Re:Re:Concat all the occurences of one field in a related table

Well, it worked, but messed up other things. So I went for a button that opens a related form. The thing with the email is now fixed....

Product: Dataease [{8}]FIVE. Written by George Washington 25/03/16 at 17:17:37

Re:Re:Re:Concat all the occurences of one field in a related table

This shouldn't mess up anything except....The execdql is part of the context of the form and we have showed a couple of times how you can change the constraint of a relationship (selection) via executing an Execdql.As much as this is a...

Product: Dataease [{8}]FIVE. Written by DataEase 25/03/16 at 18:26:33

ConCat, Concat

Solved. Thx for Bing maps and CRM app ;) use Address ONLY with full address content of the customer to see exact location.&nbsp;concat("https://www.bing.com/maps?where1=",Address)Set...

Product: Not product specific.. Written by Ihor Zakharchenko 28/07/24 at 18:17:51

On the blog about ConCat


dg3_HelpView