frxCrossView
BJL
Brussels, Belgium
FR304 and BCB6
Could you please indicate how to use AddValue from frxCrossView in BCB6?
In Delphi the function requests 3 parameters. In C++, it seems different. I have tried usinf the OPENARRAY macro without success.
Thanks.
BJL
Could you please indicate how to use AddValue from frxCrossView in BCB6?
In Delphi the function requests 3 parameters. In C++, it seems different. I have tried usinf the OPENARRAY macro without success.
Thanks.
BJL
Comments
void __fastcall TForm1::frxReport2BeforePrint(TfrxReportComponent *Sender)
{
TfrxDBCrossView* Cross;
if (dynamic_cast<TfrxDBCrossView*>(Sender))
{
Cross = dynamic_cast<TfrxDBCrossView*>(Sender);
dsStat->First();
while (!dsStat->Eof)
{
for (int i = 4; i < dsStat->Fields->Count; i++)
{
Variant RH[2] = {dsStat->Fields->Fields[1]->AsString, dsStat->Fields->Fields[3]->AsString};
Variant CH[1] = {dsStat->Fields->Fields->DisplayLabel};
Variant C[1] = {dsStat->Fields->Fields->AsFloat};
Cross->AddValue(RH, 2, CH, 1, C, 1); }
dsStat->Next();
}
}
}
Thanks
BJL