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