ChrB Function

Returns a single byte String whose value is passed.

Syntax
result = ChrB( value )

Parameters
value | Integer, | The value of the character you want.

Return Value
Result | String | The single byte string whose value was passed.

# 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.

If you need to get a single byte string when running on single byte system software and a double byte string when running on double byte system software, use the Chr function.

If you need to specify a code point above 127, use the Chr property of the TextEncoding class.

# Examples

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

Dim s as String
s=ChrB(32) //returns a space
s=ChrB(13) //returns carriage return

# See Also

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