Uniface Underground -> Undocumented.Features.Only. Go Home

expression

The "official" features are described in the proc manual. This document contains only undocumented features
 
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"
v1 = expression ( exp1, taxes ) ; v1 is 1060

exp2 = "amount + (amount * VAT /100 ) + (amount * SPECIAL / 100)" ;
v2 = expression ( exp2, taxes ) ; v2 is 1100
 


Copyright © 1999-2000  $UUU  All rights reserved.
Disclaimer. | Site Comments.