How can I access fields. Example on the 10th field?
I have a table with 100 Fields
For example:
var DS: TfrxDataSet; begin DS:=Report.GetDataset('Items'); DS.First; while not DS.Eof do begin ShowMessage(DS.Value('Part Name')); DS.NEXT; end; end.
Hello Gpi ... thank you for help.
but i want see the Fieldnumber (for example fieldnumber 10)
Try to use TfrxDataset.GetFieldList and then get name of field 10
Thank you gpi for your help
I tried your 1st answer (modified and in C++). It works.
---------------------------------------------------------------------------------------
String sDBFeld = "";
String sStringWert = "";
TfrxDataSet DS;
{DS = Report.GetDataset("frxDBDatasetDruckUrlaub");
sDBFeld = "UrlaubId" + IntToStr(10);
sStringWert = DS.Value(sDBFeld);
}
Comments
For example:
var DS: TfrxDataSet; begin DS:=Report.GetDataset('Items'); DS.First; while not DS.Eof do begin ShowMessage(DS.Value('Part Name')); DS.NEXT; end; end.
Hello Gpi ... thank you for help.
but i want see the Fieldnumber (for example fieldnumber 10)
Try to use TfrxDataset.GetFieldList and then get name of field 10
Thank you gpi for your help
I tried your 1st answer (modified and in C++). It works.
---------------------------------------------------------------------------------------
String sDBFeld = "";
String sStringWert = "";
TfrxDataSet DS;
{DS = Report.GetDataset("frxDBDatasetDruckUrlaub");
sDBFeld = "UrlaubId" + IntToStr(10);
sStringWert = DS.Value(sDBFeld);
}