how to get character code

14,984

Solution 1

From MSDN:

Public Function Chr(ByVal CharCode As Integer) As Char
Public Function ChrW(ByVal CharCode As Integer) As Char

Solution 2

From Unicode code point (not, strictly speaking, ASCII) to character: Chr and ChrW.

Inverse direction: Asc and AscW.

To get the character representation in specific encodings you need to use the methods of the System.Text.Encoding class.

Share:
14,984
John
Author by

John

Updated on November 20, 2022

Comments

  • John
    John over 1 year

    hello Is it possible to get character character code in Visual Basic 2008 and to get character from character code ( Without form1_keyDown or KeyUp)?.

    What i need is two functions, first to get character code of a character, and second to get character from character code.

    thank you.