ChrB

Return the string character for ChrCode (Byte code.) With the rise of Unicode there is now rarely any need to use ChrB().

Syntax
      ChrB (ChrCode)

ChrB (65) will return A

The ChrB function is used with byte data contained in a string. Instead of returning a character, which may be one or two bytes, ChrB always returns a single byte.

The behavior of the ChrB function depends on the byte ordering of the hardware platform, and the number of bytes used to represent Unicode characters in the system software. The function will produce different results on each supported operating system. Use with caution. The described behavior pertains to the Win32 version.

Examples

Dim strDemo
strDemo = ChrB (65)
> A

“You can easily judge the character of a man by how he treats those who can do nothing for him” ~ James D. Miles

Related:

Chr - Return the string character for ChrCode (ASCII code).
ChrW - Return the string character for ChrCode (Unicode/DBCS).


 
Copyright © 1999-2024 SS64.com
Some rights reserved