Returns the numeric value of a byte.
Syntax:
byteToNum(<byte>)
Examples:
byteToNum(byte 1 of tString)
if byteToNum(nextByte) = 0 then next repeat
numToByte(byteToNum("Z")) -- returns Z
Converts a single byte to a numeric value in the range 0-255
The byteToNum function is the inverse of the numToByte function.
Parameters:
- byte: Any expression that evaluates to a byte. If you specify a stringcontaining more than one byte, all bytes but the first are ignored.
- Returns: The byteToNum function returns an integer between zero and 255.
See also: charToNum (function), numToByte (function), numToChar (function), BinaryEncode, BinaryDecode