Fetch: Array;
The Fetch method imports data according to user algorithm.
This method must be redefined in the user class.
Class MyProvider: Object, IDtRecordsetProvider
Public Function Fetch: Array Of Variant;
Var
ResArray: Array[0..1, 0..10] Of Variant;
i, j: integer;
Begin
For j := 0 To 10 Do
For i := 0 To 1 Do
If i = 0 Then
ResArray[i, j] := "Code-" + j.ToString;
Else
ResArray[i, j] := Math.RandBetween(0, 100);
End If;
End For;
End For;
Return ResArray;
End Function Fetch;
End Class MyProvider;
The example is a macro containing implementation of the method that imports data by means of user algorithm. During import, the array that contains two data columns is obtained. There are symbolic values in the first column and random real numbers in the range from 0 to 100 in the second.
See also: