Utility.EvaluateLegacyExpression(Expression)

.EvaluateLegacyExpression() returns the results of a DEACOM expression passed in as the parameter.

Applies To

Description

.EvaluateLegacyExpression() returns the results of a DEACOM expression passed in as the parameter. An valid DEACOM expression created using the Functions and Operators Library passed in as the parameter will be calculated and returned as the result.

Properties and Methods

None

Available

The .EvaluateLegacyExpression(Expression) method is available in:

  • 15.03.016
  • All newer builds

Type

Object

Syntax

Utility.EvaluateLegacyExpression(Expression);

Parameters

Parameter

Required

Description

Expression

Yes

A valid expression written as a string (in quotes) with the functions and operators from the Functions and Operators Library

Example

Event.Form.MessageBox('Result of Legacy Expression: ' +

Utility.EvaluateLegacyExpression('IIF(INLIST(2, 1, 2, 3), "Yes", "No")'));

 

/* Expected System Prompt Display:

Result of Legacy Expression: Yes

*/