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