Documente Academic
Documente Profesional
Documente Cultură
Each character has an associated ASCII value to it. To find ASCII value of a string
we will simply use the function ASCII(‘A’or ‘a’….)
If we have the ASCII value and want to find the corresponding character then we use
CHR(ASCII#). For example, CHR(65) returns ‘A’. We can execure CHR(ASCII#) and
ASCII('character for ascii') in ORACLE database and get the corresponding values.
In Crystal Reports CHR() is replaced by CHRW().
Below are the important values which would be handy right from SQR to Crystal
Reports in several occasions:
These two functions can be used in any programming language(I firmly believe
unless a very old crap programming language/legacy system doesn't).
For my requirement in Crystal Reports, I wrote the required IFs and FORs in Crystal
Syntax and used CHRW(32), CHRW(10), CHRW(12) and CHRW(13) to meet my
customization needs. Here is the link VB_Chr_Values where CHR and ASCII values
are found from 1 to 255. Few of them work only with VB or behave differently with
VB.
This post sounds simple even for me; however considering the time I had
vetted(after forgetting) to find the required ASCII numbers to be passed in CHRW()
function in Crystal and VB syntax, I think this is worth a post that could save my time
in future.
Share This:
Facebook
Twitter
Google+
Stumble
Digg