How can I get Ascii value of any letter. Is there any function?
This is how you do it :
report demtest.
data : c.
field-symbols :
data : rn type i.
c = 'A'.
assign c to
move
write rn.
This will convert 'A' to 65.
Tom Demuyt
How to convert ascii value to character.
If I give input as 65 (ascill value) I want display 'A'.
Below logic is for convert from character to ascii value , now I want to know how to convert ascii value to character.
Naveen
report demtest.
*going from A to 65
data : c value 'A'.
field-symbols :
data : rn type i.
assign c to
move
write rn.
*going from 66 to B
data : i type i value 66.
data : x type x.
field-symbols :
move i to x.
assign x to
move
write c.
No comments:
Post a Comment