$ZAscii()

Returns the numeric byte value (0 through 255) of a given sequence of octets (8-bit bytes).

The format for the $ASCII function is:

$ZA[SCII](expr[,intexpr])

Examples of $ZASCII()

Example:

GTM>for i=0:1:4 write !,$zascii("",i)
 
-1
228
184
187
-1
GTM>

This UTF-8 mode example displays the result of $ZASCII() specifying a byte position before, first, second and third positions, and after the sequence of octets (8-bit bytes) represented by . In the above example, 228, 184, and 187 represents the numeric byte value of the three-byte in the sequence of octets (8-bit bytes) represented by .