CODE
function CODE(arg1: string = null): number
Description
Returns the code number from your computer's character set for the first character in the specified text string.
Parameters
- arg1
string
null The text for which to get the code of the first character.
Returns
number
Try It
var oWorksheet = Api.GetActiveSheet();
var oFunction = Api.GetWorksheetFunction();
oWorksheet.GetRange("A1").SetValue(oFunction.CODE("office"));