IsValidName

Name

IsValidName

Syntax

IsValidName (String name)

Purpose

To check whether a specified string is a valid object or element name.

Description

Returns true if the specified string is a valid object or element name.

Return Type

Boolean

Parameters

name [System.String] – Name to check IsValid

Example

In this example, we are passing the required parameter to the function transformation object using a Variables object.

Where,

name = ABCD_123

Right-click on the function transformation object and select Preview Output. You can see that Astera Data Stack has returned “True”, as the specified string is a valid object or element name.

Conversely, if we swap the input value with “ABC 123”, Astera Data Stack will return “False”, as the specified string value is not a valid object or element name.

© Copyright 2023, Astera Software