So I have this method that I should call, and it takes an array constructor as an argument, as shown here:
myTTable.InsertRecord([var1, var2, var3]);
The problem is that I have a very big number of variables that I managed to put into an array of strings params. But I seem unable to pass it as an argument.
All these do not work :
myTTable.InsertRecord(params);
myTTable.InsertRecord([params]);
myTTable.InsertRecord(Slice(params, 88)); // I know I have 88 elements
The only way I found is to write :
myTTable.InsertRecord([params[0], params[1], params[2], ... params[87]]);
Which I prefer not to do. Is there another way?
Also, I'm using a pretty old version of Delphi and I cannot upgrade for some corporate reasons.
InsertRecordand the type ofparamsmyTTablewas OP's own invention.