Name
ByteChr -- convert single byte to string (V7.1)
Synopsis
s$ = ByteChr(v)
Function
Converts the byte value specified by v into a string. v must be in the range of 0 to 255.

Since Hollywood strings cannot only contain text but also raw binary data, this function is suitable for composing strings using non-encoded byte data. The normal Chr() function, on the other hand, is more appropriate for dealing with text strings because it operates in Unicode mode by default which means that it composes UTF-8 strings by default, i.e. passing 255 will result in a string that has two bytes because of the UTF-8 encoding rules.

Inputs
v
byte to convert into string (in the range of 0 to 255)
Results
s$
resulting string

Show TOC