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
| Example | Result | 
|---|---|
| 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 |