Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Code Block
languagecpp
themeConfluence
FUNCTION xpfAddToAggrIfNotInAggr (aggrId aggr        :   AGGREGATE OF GENERIC;   
                                  instanceIdelement     :   GENERIC)
                                   inserted         :   BOOLEAN;
                

Use this function to ....add an element to aggregate if the aggregate does not have an element with the same value.

xpfAddToAggrIfNotInAggr(aggr, element) performs the same as the following statements:

IF NOT (element IN aggr) THEN aggr ++ element; END_IF;

Arguments

...

TypeNameComment
AGGREGATE OF GENERICaggrIdcomments
GENERICinstanceId 

...

Example

...

Code Block
languagecpp
<Missing Example>LOCAL
	OK 	: BOOLEAN;
	str	: STRING;
	aggr: LIST OF STRING;
END_LOCAL;
...
str := 'QWERTY';
OK := xpfAddToAggrIfNotInAggr(aggr, str);
IF OK THEN
	xpxPrintf('\n%s inserted', str);
END_IF;
...

 

See also

Filter by label (Content by label)
showLabelsfalse
showSpacefalse
cqllabel = "extension_schema" and parent = "5636522"

...