© Copyright 2023, Astera Software
Example
In this example, we are passing the required parameter to the function transformation object using a Variables object.
Where,
str = ABC-123
index = 3
Right-click on the function transformation object and select Preview Output. You can see that Astera Data Stack has returned an integer ASCII value of the specified character in a string.
Name
Asc
Syntax
Asc (String str)
Purpose
To return the ASCII value of a specified character.
Description
Returns ASCII value of the specified character.
Return Type
Int32
Parameters
str [System.String] – Character for ASCII value
index [System.Int32] – Position of character to be converted within string