Method: Chr for VBS
- 已更新2024-09-12
- 閱讀時間為 1 分鐘
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