Porovnávané verzie
porovnané s
Kľúč
- Tento riadok sa pridal
- Riadok je odstránený.
- Formátovanie sa zmenilo.
%SetFlags function
Old name
%SetFlagsV
Function
The function sets flags of a defined expression value. Result The result is a value of the same type as the expression.
Declaration
Blok kódu | ||||
---|---|---|---|---|
| ||||
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 functionBlok kódu | ||||
---|---|---|---|---|
| ||||
%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 another other flags B up to P. If the argument @X is not entered, unset other flags are unchanged. During the object generation, values of all its flags are FALSE.
Example
Blok kódu | ||||
---|---|---|---|---|
| ||||
%SetFlags(X.DayCOPDH, @A, F_1, @C, F_2, @C, F_3, @X, @FALSE) |