Print Page | Close Window

CHRW(21) as Carriage Return

Printed From: Crystal Reports Book
Category: Crystal Reports 9 through 2020
Forum Name: Technical Questions
Forum Discription: Formulas, charting data, Crystal syntax, etc.
URL: http://www.crystalreportsbook.com/forum/forum_posts.asp?TID=8814
Printed Date: 24 Apr 2024 at 7:24pm


Topic: CHRW(21) as Carriage Return
Posted By: Cordellv
Subject: CHRW(21) as Carriage Return
Date Posted: 06 Jan 2010 at 8:53am
I can not find any place on the Internet where CHRW() is explained.  I have always used CHR(13) as a Carriage Return in a Crystal Report.  We have an array filed that displays a (square) as the dilimiter when we print it frmo the tables.  One of our programmers told us that this square that is printing is a carrage return CHRW(21).  In the Split command using that as the delimiter worked.  But I have no idea why.  Can anyone tell me where I can find what CHRW() characters mean.  Are they different than ASCII control characters?
 
I found this comment:
In later versions of Crystal Reports, Chr() has been replaced by ChrW() to support the full Unicode character set. It works the same way - supply the ASCII code that you wish to be included in the formula.
http://mywebface.mywebsearch.com/download/index.jhtml?partner=GRxdm016 -  
at:
http://www.ablazegroup.com/program/misc/newsletter_sep2007.asp - http://www.ablazegroup.com/program/misc/newsletter_sep2007.asp  
 
and the IBM Help
http://publib.boulder.ibm.com/infocenter/radhelp/v7r5/index.jsp?topic=/com.businessobjects.integration.eclipse.designer.doc/html/topic646.html - http://publib.boulder.ibm.com/infocenter/radhelp/v7r5/index.jsp?topic=/com.businessobjects.integration.eclipse.designer.doc/html/topic646.html  
 
shows it but does not give a table or show why Carriage Return is CHRW(21) not CHRW(13)
 
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
7 Jan 2010
THAT IS AMAZING THAT NO ONE IS USING THE CHRW() CHARACTERS IN CRYSTAL REPORTS??????
CryCryCryCry


-------------
Making Things Better One Day At A time



Replies:
Posted By: kevlray
Date Posted: 07 Jan 2010 at 8:47am
I looked up CHRw and Unicode.  The basic ascii codes were not changed when Unicode was added.  Code 21 is the NAK code (used in communications).   I wish I had an answer.



Print Page | Close Window