Ascii
- Last UpdatedJan 11, 2023
- 1 minute read
- PI System
- PI Server 2024 R2
- 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, the ASCII character code for D]
-
Ascii("Program")
[Returns 80, the ASCII character code for the first letter of the string]