The Datasets.importData method takes as second argument an ArrayOfFields. In the VB example at the MP2002 help page this variable is declared as
Dim myExampleArray(4, 2)
I'm trying to achieve the same in Delphi 6 but without much success. I've tried:
var
reportFormat: array of array of OleVariant;
begin
setLength(reportFormat,5);
setLength(reportFormat[0],2);
as well as:
var
reportFormat: Variant;
begin
reportFormat:=VarArrayCreate([0,4], VarArray);
reportFormat[0]:=VarArrayCreate([0,1], varVariant);
Does anyone know the proper construction of the necessary OleVariant?
Thanks very much,
Pascal