void ddlCalc( CONTROL *ctl, char *OptnStr, char *ArgList);
The ddlCalc() API function encapsulates eleven CALC-related functions.
CALC, SET, IF, WHILE are analogues of the respective ddlCreateCalcObject() statements: CALC, SET, IF, WHILE, In addition, number valued functions that can be used by CALC are described in the CALC document. String valued functions that can be used by SET are described in the SET document. UNCALC, UNSET, VLIST, SUB, SUBSTITUTE, INC are extrapolations of the respective Thunderbolt RAD DCL commands: UNCALC, UNSET, VLIST, SUB or SUBSTITUTE, INC. VALUEOF is a newly minted function that performs variable substitution in strings. |
|
In this context, the CALC/SET/IF <expression> may contain global
variables (variables that begin with '%'), super global variables
(variables that begin with '%%'), numeric constants and string constants.
It may not contain local variables (variables that do not begin with '%')
or field names.
<expression> may also contain special system variables. One class of system variables correspond to the values that were returned by the previous API function. For all API functions except ddlCalc(), when a function terminates, the relevant CONTROL structure members are captured to the API context. The ddlCalc() API function is excepted since it is used for capturing and testing these variables. |
|
Copyright © 2019 , WhamTech, Inc. All rights reserved. This
document is provided for information purposes only and the contents hereof are
subject to change without notice. Names may be
trademarks of their respective owners.