String.ChrByte

From Xojo Documentation

You are currently browsing the old Xojo documentation site. Please visit the new Xojo documentation site!
Method

String.ChrByte(value As Integer) As String

New in 2019r3

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 = String.ChrByte(13) // returns carriage return with a nil TextEncoding

See Also

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