validateSysVar method: Utility class

Syntax

validateSysVar(SysVar)

Description

Use this method to return the valid, correctly capitalized name of a system variable.

Parameters

Parameter Description

SysVar

Specifies the system variable name to be validated as a string.

Returns

A string containing the validated and correctly capitalized system variable name, INVALID SYSVAR if the system variable does not exist.

Example

In the following example, %AuthenticationToken is returned as the validated system variable name.

import PTFP_FEED:UTILITY:Utility;

Local PTFP_FEED:UTILITY:Utility &utility = create PTFP_FEED:UTILITY:Utility();

&str = &utility.validateSysVar("%AUTHENTICATIONtoken");

/* &str="%AUTHENTICATIONTOKEN" */