Please ensure Javascript is enabled for purposes of website accessibility
Powered by Zoomin Software. For more details please contactZoomin

PI System Management Tools

Ascii (Tag-based PE function)

  • Last UpdatedOct 04, 2024
  • 1 minute read

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]

In This Topic
TitleResults for “How to create a CRG?”Also Available in