Loop over TfrxDataSet

It seems as if the TfrxDataSet is missing some properties that are necessary for retrieving the field names from that table. If anyone could post an example of how to do this it would be greatly appreciated.

Comments

  • edited 7:20AM
    I found the answer after a couple of days of searching (They need better documentation!!!)

    There is a very poorly thought out procedure that they use for the TfrxDataSet Class.
    var 
      fields: TStringList;
      estDataList: TfrxDataSet;
    
    begin
      estDataList := Report.GetDataset('EstData');
      fields := TStringList.Create;
    
      estDataList.GetFieldList(fields);
    end.
    

    Where I have the problem with this way of doing it is that it uses a Procedure rather than a function.

Leave a Comment