User Manual

GETTING STARTED


OTHER EDITIONS


LAUNCHERS


MODULES


PLATFORM


APPENDIX


TUTORIALS & HELPFUL TRICKS


STRATEGIC PARTNER LINKS

Sepasoft - MES Modules
Cirrus Link - MQTT Modules

RESOURCES

Inductive University
Ignition Demo Project
Knowledge Base Articles
Forum
IA Support

ALL USER MANUAL VERSIONS

Ignition 8.1. Offline Version (04/2021)
Ignition 8 Online Version
Ignition 7.9 Online Version
Ignition 7.8 Online Version

Deprecated Pages

SDK Documentation

Employees

Sign In

Skip to end of metadata
Go to start of metadata

The following feature is new in Ignition version 8.1.8
Click here to check out the other new features
This function is used by Ignition's Expression language.

Description

Takes a Unicode character (as a string), and returns the corresponding character code, as an integer.

Note: This function can work for ASCII conversions as well, since Unicode and ASCII character codes match for all ASCII characters.

Syntax

ordinal(string)

  • Parameters

String string - A string containing a single Unicode character. If the string does not contain exactly one character, an ExpressionEval error is thrown.

  • Results

Integer - The character code associated with the Unicode character.

Examples
Code Snippet
ordinal("a") //Returns 97.
Code Snippet
ordinal("AA") //Returns Error_ExpressionEval.
Code Snippet
ordinal("ñ") //Returns 241
  • No labels