Method
ChrB
Warning
This item was deprecated in version 2019r2. Please use String.ChrByte as a replacement.
Description
Returns a single byte string whose value is passed.
Usage
result = ChrB(value)
Part |
Type |
Description |
---|---|---|
result |
The single byte string whose value was passed. |
|
value |
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
Compatibility
All project types on all supported operating systems.
See also
String.AscByte, Chr, Encoding, String.IndexOfBytes, String.LeftBytes, String.Bytes, String.MiddleBytes, String.RightBytes functions; EndOfLine, TextEncoding classes; Encodings module