UNICODE

UNICODE(arg1) → { number }

Returns the number (code point) corresponding to the first character of the text.

Parameters:

Name Type Description
arg1 string

The character for which the Unicode value will be returned.

Returns:

Type
number

Example

Copy code
builder.CreateFile("xlsx");
var oWorksheet = Api.GetActiveSheet();
var oFunction = Api.GetWorksheetFunction();
oWorksheet.GetRange("A1").SetValue(oFunction.UNICODE("example"));
builder.SaveFile("xlsx", "UNICODE.xlsx");
builder.CloseFile();

Resulting document