DIAdem Help

Method: Chr for VBS

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

Method: Chr for VBS

Specifies the character that matches the ANSI character code.

vChr = Object.Chr(charcode)
ObjectVBS
Object with this method. You do not need to specify this object.
charcodeVariant
Specifies the ANSI character code.
vChrVariant
Receives the character that matches the ANSI character code.

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

Call MsgBox(Chr(65)) ' Returns A
Call MsgBox(Chr(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

Log in to get a better experience