CHAR
Returns the character specified by the code number from your computer's character set.
Syntax
expression.CHAR(arg1);
expression - A variable that represents a ApiWorksheetFunction class.
Parameters
| Name | Required/Optional | Data type | Default | Description |
|---|---|---|---|---|
| arg1 | Required | ApiRange | ApiName | number | A number between 1 and 255 specifying a character from the computer character set. |
Returns
string
Example
This example shows how to return the character specified by the code number from your computer's character set.
- Code
- Result
// How to return the character specified by the code number from your computer's character set.
// Use function to return the character specified by the code number from your computer's character set.
let worksheet = Api.GetActiveSheet();
let func = Api.WorksheetFunction;
worksheet.GetRange("A1").SetValue(func.CHAR(234));