The Asc function returns the unicode of the first character of the passed value. The result of the function can be between 0 and 65535.
Syntax | ||||
Asc(Value) | ||||
Return value | ||||
Type |
Description | |||
Long |
Value between 0 and 65535. | |||
Parameter | ||||
Use |
Name |
Type |
Passing |
Description |
Required |
Value |
String |
ByVal |
String to get the Unicode of the first character. |
Example:
Dim Article As String
Dim Code As Long
Article := "Motor"
Code := Asc(Artikel)
Result: Code = 77 of the character „M“.