Difference between revisions of "ChrB"

From Xojo Documentation

m (Text replacement - "{{Deprecated|" to "{{DeprecatedItem|")
m (Text replacement - "{{DeprecatedItemItem|" to "{{DeprecatedItem|")
 
(One intermediate revision by the same user not shown)
(No difference)

Latest revision as of 19:07, 3 September 2020

Method

Returns a single byte string whose value is passed.

Usage

result = ChrB(value)

Part Type Description
result String The single byte string whose value was passed.
value Integer The value of the character you want.

Notes

The ChrB function returns a single byte string whose value is specified. ChrB should be used rather than Chr when value represents binary data.

Sample Code

These examples use the ChrB function to return the characters whose values are specified.

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

See Also

AscB, Chr, Encoding, InStrB, LeftB, LenB, MidB, RightB functions; EndOfLine, TextEncoding classes; Encodings module