IEtlPlainRecordSet.Remove

Syntax

Remove(Value: Integer);

Parameters

Value - record index.

Description

The Remove method removes a record from a set.

Example

Sub UserSub(Input: IEtlPlainRecordSets; Output: IEtlPlainRecordSets);

Var

RecordSetIn, RecordSetOut: IEtlPlainRecordSet;

i: Integer;

Begin

RecordSetIn:=Input.Item(0);

RecordSetOut:=Output.Item(0);

For i := 0 To RecordSetIn.Count - 1 Do

RecordSetOut.Add;

RecordSetOut.Item(i).Value(0):=RecordSetIn.Item(i).Value(0);

End For;

RecordSetOut.Remove(0);

RecordSetOut.Remove(RecordSetOut.Count-1);

End Sub UserSub;

This example is a custom unit macro that is used to transform data in ETL task. After executing the ETL task, first, the equal number of records is created in a data consumer as well as a data source, then the first and the last record are deleted.

See also:

IEtlPlainRecordSet