String.ChrByte

From Xojo Documentation

Revision as of 19:47, 2 April 2020 by PLefebvre (talk | contribs) (See Also)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
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