I searched and found some information on passing arrays, but not what I'm looking for.
In my procedure I create a variant array
I then fill this array with information and pass it to excel to print a specific report. I now need to pass this array to another procedure in order to create a text file, something like:
Will something like this work? Will I be able to access the array elements in the CreateTextTransfer procedure if I set it up like this?
Thanks!
Leslie
In my procedure I create a variant array
Code:
ProcessList := VarArrayCreate([0, (personcount - 1), 0, 8], varOleStr);
I then fill this array with information and pass it to excel to print a specific report. I now need to pass this array to another procedure in order to create a text file, something like:
Code:
procedure CreateTextTransfer(arrProcessList : variant);
begin
//create my file
end;
CreateTextTransfer(ProcessList);
Will something like this work? Will I be able to access the array elements in the CreateTextTransfer procedure if I set it up like this?
Thanks!
Leslie