AscW Function [VBA]
Returns the Unicode value of the first character in a string expression.
AscW (Text As String)
Integer
Text: qualsevol expressió de cadena và lida. Només és rellevant el primer carà cter de la cadena.
Use the AscW function to replace keys with Unicode values. If the AscW function encounters a blank string, LibreOffice Basic reports a run-time error. Returned values are between 0 and 65535.
Sub ExampleAscW
Print AscW("A") ' retorna 65
Print AscW("Ω") ' retorna 937
Print AscW("Αθήνα") ' retorna 913, perquè només es té en compte el primer carà cter
End Sub