DIAdem Help

Method: ChrB for VBS

  • Updated2024-09-12
  • 1 minute(s) read

Method: ChrB for VBS

Specifies the first byte of a character that matches the ANSI character code.

vChrB = Object.ChrB(charcode)
ObjectVBS
Object with this method. You do not need to specify this object.
charcodeVariant
Specifies the ANSI character code.
vChrBVariant
Receives the first byte of a character that matches the ANSI character code.

The following example displays for various ANSI character codes the respective character:

Call MsgBox (ChrB(65)) ' Returns A
Call MsgBox (ChrB(97)) ' Returns a

See Also

Objects Overview

Related Topics

Abs | Asc | AscB | AscW | CBool | CByte | CCur | CDate | CDbl | CInt | CLng | CSng | CStr | ChrB | ChrW | Chr | Escape | Fix | Hex | Int | Oct | Sgn | UnEscape