Ord - script and chart function
Last updated: 6/9/2026
Ord() returns the Unicode code point number of the first character of the input string.
Syntax:
Ord(text)
Return data type: integer
Example: Chart expression
| Ord('A')
|
Returns the integer 65. |
| Ord('Ab')
|
Returns the integer 65. |
Example: Load script
//Guqin (Chinese: 古琴) - 7-stringed zithers
T2:
Load *,
ord(Chinese) as OrdUnicode,
ord(Western) as OrdASCII;
Load * inline [
Chinese, Western
古琴, Guqin ];
Result:
| Chinese |
Western |
OrdASCII |
OrdUnicode |
|
古琴 |
Guqin |
71 |
21476 |