String.ChrByte

From Xojo Documentation

Method

String.ChrByte(value As Integer) As String

Supported for all project types and targets.

Returns a single byte String from the specified value.

Notes

This function returns a single byte string whose value is specified. Use ChrByte instead of Chr when working with binary data.

Sample Code

Dim s As String
s = String.ChrByte(32) // returns a space with a nil TextEncoding
s = StringChrByte(13) // returns carriage return with a nil TextEncoding

See Also

String, String.AscByte, String.IndexOfBytes, String.LeftBytes, String.Bytes, String.MiddleBytes, String.RightBytes