I have searched the Delphi help on using an array as a parameter, but can only find information on using a single dimension array, is there any way to use a multidimensional array as a parameter? (ps some of this may sound familiar, I posted a question the other day, and thought I found a way around it, but..... NOT!!)
What I have is an array that I have created and I transfer to Excel:
I now need to take this array (or a copy of it) and pass it to another procedure in order to create a text file from the information:
CreateTextFile(ARRAY AS PARAMETER)
I have tried passing in ProcessList, but I get an error that:
Incompatible types : array and variant
I have tried creating a new array called TextList, setting it equal to ProcessList and passing it:
SetLength(TextList, personcount, 8);
TextList := ProcessList;
CreateTextFile(TextList);
but I get an error:
Incompatible Types : array and dynamic array
The help I found was on:
'Array Parameters'
'Open Array Parameters'
'Variant Open Array Parameters'
but like I said, they only deal with one dimensional arrays.
I appreciate any help or guidance!
Thanks,
Leslie
What I have is an array that I have created and I transfer to Excel:
Code:
ProcessList := VarArrayCreate([0, (personcount - 1), 0, 8], varOleStr);
I now need to take this array (or a copy of it) and pass it to another procedure in order to create a text file from the information:
CreateTextFile(ARRAY AS PARAMETER)
I have tried passing in ProcessList, but I get an error that:
Incompatible types : array and variant
I have tried creating a new array called TextList, setting it equal to ProcessList and passing it:
SetLength(TextList, personcount, 8);
TextList := ProcessList;
CreateTextFile(TextList);
but I get an error:
Incompatible Types : array and dynamic array
The help I found was on:
'Array Parameters'
'Open Array Parameters'
'Variant Open Array Parameters'
but like I said, they only deal with one dimensional arrays.
I appreciate any help or guidance!
Thanks,
Leslie