The function sets flags of a defined expression value. The result is a value of the same type as the expression.
Declaration
UNIVAL %SetFlags(
in expression,
in @FlagName,
BOOL in FlagValue,
...
)
Parameters
Expression
Expression determining the eval tag value. It must be identical with the type of given eval tag.
@FlagName
Flag identification.
FlagValue
Value of the flag defined by the parameter @FlagName.
Note
The same value may be assigned to flags with no value that is assigned by this function. Assignment of a value to such flags is performed using the character X as the argument of FlagName (@X). For example the following function
%SetFlags(X.DayCOPDH*1.5, @A, PDH_N, @X, @FALSE)
assigns a value of the expression PDH_N to the flag A and the value False to other flags B up to P. If the argument @X is not entered, other flags are unchanged. When the object is created, the values of all its flags are FALSE.
0 komentárov