Fields

How can I access fields. Example on the 10th field?

I have a table with 100 Fields

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);

    }

Leave a Comment

Rich Text Editor. To edit a paragraph's style, hit tab to get to the paragraph menu. From there you will be able to pick one style. Nothing defaults to paragraph. An inline formatting menu will show up when you select text. Hit tab to get into that menu. Some elements, such as rich link embeds, images, loading indicators, and error messages may get inserted into the editor. You may navigate to these using the arrow keys inside of the editor and delete them with the delete or backspace key.