IEtlPlainRecord.Value

Syntax

Value(Index: Integer): Variant;

Parameters

Index is an index of the flat record field.

Description

The Value property determines value of a flat record field, index of which is passed by the Index parameter.

Example

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

Var

RecordSetIn, RecordSetOut: IEtlPlainRecordSet;

RecordIn, RecordOut: IEtlPlainRecord;

i: Integer;

Begin

RecordSetIn:=Input.Item(0);

RecordSetOut:=Output.Item(0);

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

RecordSetOut.Add;

RecordIn:=RecordSetIn.Item(i);

RecordOut:=RecordSetOut.Item(i);

RecordOut.Value(0):=RecordIn.Value(0);

End For;

End Sub UserSub;

This example is a custom module macro, used to transform data in ETL task. After executing the ETL task, the first consumer field is put in correspondence with the first source field.

See also:

IEtlPlainRecord