char2Num Function [AX 2012]

Updated: November 24, 2009

Applies To: Microsoft Dynamics AX 2012 R2, Microsoft Dynamics AX 2012 Feature Pack, Microsoft Dynamics AX 2012

Converts a character in a string to the ASCII value of the character.


int char2Num(str text, int position)

Parameter

Description

text

The string that contains the character.

position

The position of the character in the string.

The ASCII value of the character as an int object.

  • char2Num("ABCDEFG",3); //Returns the numeric value of C, which is 67.

  • char2Num("ABCDEFG",1); //Returns the numeric value of A, which is 65.


Announcements: To see known issues and recent fixes, use Issue search in Microsoft Dynamics Lifecycle Services (LCS).

Community Additions

ADD
Show: