byte(
NUMBER
)

The byte( function converts a number into a single byte of binary data (see Binary Data).


Parameters

This function has one parameter:

number – is the value that you want to convert into a binary number. This value must be between –254 and 255.


Description

This function converts a number from –254 to +255 into a single byte of binary data (see Binary Data).

Note: In older (pre-Unicode) versions of Panorama this function was identical to the chr( function, but they are now different. The result of the chr( function is a single character of text (which may be 1, 2, 3 or more bytes long), while the result of the byte( function is a single byte of binary data. Use the chr( function when working with text, the byte( function when working with binary data.


See Also


History

VersionStatusNotes
10.0UpdatedCarried over from Panorama 6.0, but now returns a binary value instead of a text value.