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.

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