...
Code Block | ||||
---|---|---|---|---|
| ||||
FUNCTION xpfAddToAggrIfNotInAggr (aggr : AGGREGATE OF GENERIC; elementvalue : GENERIC) inserted : BOOLEAN; |
Use this function to add an instance to aggregate the given 'value' to the specified aggregate 'aggr' if the aggregate does not have an element with the same instancevalue.
xpfAddToAggrIfNotInAggr(aggr, element) for instances and aggregate of instances performs the same asThe argument 'aggr' can be any type of aggregate except ARRAY. The argument 'value' can be any of the following data statements:
...
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 |
...