PickBASIC / FlashBASIC

ascii() function

.md

The ascii() function converts a string of EBCDIC-encoded characters into their equivalent ASCII values.

Look up any code 0–255 in the Character Codes chart: the character, hex, binary, and the D3 marks (AM, VM, SVM).

Syntax

ascii(exp)

Parameter(s)

exp String of EBCDIC-encoded characters to convert.

Description

The ascii() function is the inverse of the ebcdic() function.

Note: The ascii() function cannot determine whether the string being passed to it is already ASCII or not. Passing an ASCII string through the ascii() function produces undefined results.

See also