Official Content

Inserts special characters into a string, such as a carriage return. In other words, it allows you to retrieve a character from the ASCII table (in modern languages, from the Unicode table)

Syntax

Chr(Number)

Where:
   Number
        
Is the number corresponding to the ASCII table one.

Type returned:
Character(1)

Scope

Objects: Procedure, Transaction, Panel, Work Panel

Samples

You want to insert a carriage return in a memo field because the message to show is too long. By inserting this special character in the middle, the message will be shown in two lines. For this, you need to use the 13.

&Mssg = Concat("This is an example about ", Chr(13))
&Txt  = Concat(&Mssg, " the CHR standard function")
TextBlock1.Caption = &Txt
Note: Unicode's values are supported in Apple since GeneXus 17 Upgrade 8

See Also

NewLine function
Asc function







Last update: February 2024 | © GeneXus. All rights reserved. GeneXus Powered by Globant