StructReplace

StructReplace

%StructReplace function


Function

The function replaces a value defined by the parameter toDefValue in a structure column refToColumn within rows defined by the parameters rowFrom and rowTo with a value defined by the parameter replaceWithValue.

Declaration

%StructReplace( in refToColumn, in toFindValue, in replaceWithValue, INT in rowFrom, INT in rowTo )

Parameters

refToColumn

Reference to a column.

toFindValue

Value to be replaced with.

replaceWithValue

Value to be filled into items.

rowFrom, rowTo

Integer expressions.

Description

If rowFrom=rowTo=0 => the function sets the value defined by the parameter value in the entire column. The column is defined by the reference to an item from this column (e.g. _rec^item).