Hi,
I have the following function:
procedure TfrmReports.ssShowReport(sReportFile : string; aReportDataSet : TADOQuery; arVariables, arValues : Array of string);
var sAppPath : string; i : integer;
begin
sAppPath := ExtractFilePath(ParamStr(0));
dsReports.DataSet := aReportDataSet;
aReport.LoadFromFile(sAppPath + '\Reports\' + sReportFile + '.frf');
for i := Low(arVariables) to High(arVariables) do
SetVariableValues(arVariables, arValues); //set an individual variable
aReport.ShowReport;
end;
I would like to pass ONE array that has pairs of 'Variable' and 'Variable value' (2 dimensional array?) instead of the two SEPARATE arrays.
How can i do that??
TIA,
BTW, thanks to Andrew for help on the algorithm for combinations.
cpmasesa
I have the following function:
procedure TfrmReports.ssShowReport(sReportFile : string; aReportDataSet : TADOQuery; arVariables, arValues : Array of string);
var sAppPath : string; i : integer;
begin
sAppPath := ExtractFilePath(ParamStr(0));
dsReports.DataSet := aReportDataSet;
aReport.LoadFromFile(sAppPath + '\Reports\' + sReportFile + '.frf');
for i := Low(arVariables) to High(arVariables) do
SetVariableValues(arVariables, arValues); //set an individual variable
aReport.ShowReport;
end;
I would like to pass ONE array that has pairs of 'Variable' and 'Variable value' (2 dimensional array?) instead of the two SEPARATE arrays.
How can i do that??
TIA,
BTW, thanks to Andrew for help on the algorithm for combinations.
cpmasesa