Method: Chr for VBS
- Updated2024-09-12
- 1 minute(s) read
Methods > Method: Chr for VBS
Method: Chr for VBS
Specifies the character that matches the ANSI character code.
vChr = Object.Chr(charcode)
| Object | VBS Object with this method. You do not need to specify this object. |
| charcode | Variant Specifies the ANSI character code. |
| vChr | Variant 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