how to fill memo.text

how to fill memo.text by taking field names from frxdbdataset

eg: frxdbdataset got 2 field name: name, description
memo1.text contains name
memo2.text contains description

so it is not fixed as
memo1.text: = 'name'
memo2.text: = 'description'

sorry for my english is not good.

TIA

Comments

  • gordkgordk St.Catherines On. Canada.
    edited 7:44AM
    here is a sample using variables but you can modify to suit.
    internal report code add to the empty begin end block of the code page this will run first.
    var
    i: Integer;
    ds: TfrxDataSet;
    list: TStringList;

    ds := Report.GetDataset('frxDBDataSet1');
    list := TStringList.Create;
    ds.GetFieldList(list);

    for i := 0 to list.Count - 1 do
    somevar := ds.Value[list]; // get field value by its name

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.