© Copyright 2023, Astera Software
Name | Center |
Syntax | Center (String str, Integer length) |
Purpose | To return a string value centered in accordance with the provided integer length. |
Description | Returns specified string centered according to the specified integer value. Returns zero if string is null. |
Return Type | String |
Parameters | Str [System.String] – String which will be centered length [System.Int64] – Length of the output string |
Example
In this example, we are passing the required parameters to the function transformation object using a Variables object.
Where,
str = ABC
length = 20
Right-click on the function transformation object and select Preview Output. You can see that Astera Data Stack has returned the specified string centered in accordance with the provided length value.