Salesforce

ExpCalc (Magic xpa 4.x)

« Go Back

Information

 
Created BySalesforce Service User
Approval Process StatusPublished
Objective
Description

ExpCalc (Magic xpa 4.x)

Lets you use the results of one expression inside another expression.

Syntax:

ExpCalc (expression specification)

Parameters:

expression specification – the expression number to execute represented by the EXP literal, such as '2'EXP as a pointer to the second function in the expression list of the current task.

Returns:

The evaluation value of the specified expression.

Examples:

  • ExpCalc('2'EXP) executes expression #2.

  • If expression number 4 contains “A>B and G>10 or F” and you need to use the same expression but with ‘NOT’ added to it, you can enter it as follows: NOT (ExpCalc('4'EXP))

Note:

The expression specification may be one of the following:

  • EXP literal (For example, '2'EXP as a pointer to the second function in the expression list in the current task).
    Make sure to use the EXP literal and not just the number.

  • Constant numeric

See also:

How Do I Reuse Expressions Within Another Expression?

The Online and Rich Client Samples projects (program EX01 and REX01)

Reference
Attachment 
Attachment