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

Analytics and Notifications for PI System Explorer (PI Server 2024 R2)

Ascii

  • Last UpdatedJan 11, 2023
  • 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, the ASCII character code for D]

  • 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