Ascii (Tag-based PE function)
- Last UpdatedOct 04, 2024
- 1 minute read
- PI System
- PI Server 2023
- PI Server
Return the ASCII character code of the first character of a string.
Syntax
Ascii(s1)
Arguments
s1
Any expression evaluating to a string
Returns
The character code of the first character of the string
Exceptions
If the argument is not a string, an error value is returned
Example
Ascii("D") [Returns 68]
Ascii("Program") [Returns 80, the ASCII character code for the first letter of the string]