From : http://www.sap-img.com/abap/how-can-i-get-ascii-value-of-any-letter.htm
report Demotest.
* 1.將字元轉成ASCII code
data : c value 'A'.
field-symbols : <n> type x.
data : rn type i.
assign c to <n> casting.
move <n> to rn.
write rn.
* 2. 將ASCII code轉成字元
data : i type i value 66.
data : x type x.
field-symbols : <fc> type c.
move i to x.
assign x to <fc> casting type c.
move <fc> to c.
write c.
沒有留言:
張貼留言
歡迎提供意見, 謝謝 (註 : 留言經過版主審核通過才會發布)