Qlik Community

New to QlikView

Discussion board where members can get started with QlikView.

Highlighted
Arjunarao
Honored Contributor II

chr( n ) function

Hi All,

I am just confused with using chr( n ) function. I have seen in help but didn't find full info.

Please help to provide sample application/information on this.

Thanks in advance.

1 Solution

Accepted Solutions
qlikviewnovice
Valued Contributor II

Re: chr( n ) function

Hi,

Please have a look:

How to find a number for a char: chr() and ord() functions

Hope it will help!!

3 Replies
qlikviewnovice
Valued Contributor II

Re: chr( n ) function

Hi,

Please have a look:

How to find a number for a char: chr() and ord() functions

Hope it will help!!

Arjunarao
Honored Contributor II

Re: chr( n ) function

Hi qlikviewnovice

Thank you so much. I got it now.

MVP & Luminary
MVP & Luminary

Re: chr( n ) function

Hi,

Chr(AsciiNumber) will return the character of given ASCII number.  Generally this is used when we want to insert single quote(') in our expression or in concatenation, since it is an error to mention single quote between ''.

Example:

If we want form a string like this - don't we need to use like below

='don' & Chr(39) & 't'

Or if you want to display Qlikview & Qliksense in two different lines in text object

='Qlikview' & Chr(10) & 'Qliksense'   -- Ascii code for Carriage return is 10  --- Chr(10) = Enter key

output is:

Qlikview

Qliksense

Regards,

Jagan.