...
Code Block | ||||
---|---|---|---|---|
| ||||
FUNCTION xpfAddToAggrIfNotInAggr (aggr : AGGREGATE OF GENERIC; value elementValue : GENERIC) inserted : BOOLEAN; |
Use this function to add (or append) the given 'valueelementValue' to the specified aggregate 'aggr' if the aggregate does not have an element with the same value.
Arguments
...
Type | Name | Comment |
AGGREGATE OF GENERIC | aggrId | Any aggregate type except ARRAY. The |
...
aggregate elements data type must be compatible with the data type of the argument 'elementValue'. If the aggregate is a LIST, the actual 'elementValue' will be appended to the list. | ||
GENERIC | elementValue | The value to add to the aggregate if the actual value does not exist in the aggregate. The 'elementValue' can be any of the following data types: sdaiINSTANCE, sdaiINTEGER, sdaiREAL, sdaiSTRING |
...
and "typed value" of sdaiINTEGER, sdaiREAL, sdaiSTRING |
...
Arguments
Type | Name | Comment |
AGGREGATE OF GENERIC | aggrId | aggregate of some instances, that requires to be unique |
GENERIC | instanceId | instance id of new element |
Return Value
...
Type | Name | Comment |
BOOLEAN | inserted | TRUE if the element was added |
...