AscW Function [VBA]

Returns the Unicode value of the first character in a string expression.

warning

यस k, कार्य वा वस्तुले प्रयोगयोग्य कार्यक्रम कोडमा एक मोड्युलमा प्रयोग गरिएको Option VBASupport 1 विधानसहितका अगाडि सक्षम गरिएको छ।


Syntax:


AscW (string) As Long

Return value:

Long

Parameters:

string: Any valid string expression. Only the first character in the string is relevant.

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.

त्रुटि सङ्केतहरू

5 अवैध कार्य-विधि कल

Example:


Sub ExampleAscW
 Print AscW("A") ' returns 65
 Print AscW(string:="Ω") ' returns 937
 Print AscW("Αθήνα") ' returns 913, since only the first character (Alpha) is taken into account
End Sub

कृपया हामीलाई समर्थन गर्नुहोस्!