Livecode Wiki
Advertisement

Returns the byte corresponding to a numeric value in the range 0-255.Syntax:

numToByte(<numericValue>)

Examples:

numToByte(65) -- returns a byte with numeric value 65
numToByte(0) -- returns a byte with numeric value 0

Use the byteToNum function to translate numbers into their byte equivalents, or to interpret a byte (such as a control character) that can't be displayed.

The numToByte function is the inverse of the byteToNum function.

Parameters:

  • numericValue: An integer between zero and 255, or an expression thatevaluates to such an integer.
  • Returns: The numToByte function returns a single byte.

See also: byteToNum (function),charToNum (function),base64Encode (function),macToISO (function),toUpper (function),ISOToMac (function),toLower (function),binaryDecode (function),extendKey (property),charSet (property),HTMLText (property),useUnicode (property),

Advertisement