The complementary function strLib.intAsChar() returns the character to which a code point refers.
strLib.charAsInt(character CHAR(1)? in)
returns (code INT?)
source STRING = "ABC";
result INT?;
result = strLib.charAsInt(source);
// result is 65 on ASCII
// 193 on EBCDIC
| Platform | Issue |
|---|---|
| JavaScript generation | The function strLib.charAsInt() is not supported |