comp • gb • string • code

String.Code (gb)

Static Function Code ( String As String [ , Index As Integer ] ) As Integer

Returns the Unicode value of a character inside an UTF-8 string.

Since 3.12.3
-1 is returned if the UTF-8 string is invalid.