Uniface Underground -> Undocumented.Features.Only. |
Name | expression
Return the result of evaluating a nonconditional expression. |
Synopsis | expression(Expression[,list]) |
Use | Allowed in form, service, and report components. |
Description | You can use a second (and optional) parameter a
associative list (id=value) that expression
should use to evaluate the expression as variables and values.
Tested in 7.2.03
|
Example | amount = 1000
taxes = "VAT=6;SPECIAL=4" ; Note that taxes is a string (variable or field) and ; VAT and SPECIAL are id of two items exp1 = "amount + (amount * VAT /100
)" ;exp1 and exp2 are string with the "formula"
exp2 = "amount + (amount * VAT /100
) + (amount * SPECIAL / 100)" ;
|