Create Memo
I want to create few Memos dinamically
I do like this:
I here I have a problem, because I don't know FieldName. I know only index.
Can I write DataSet.Field[0].Name ?
I do like this:
Memo:= TfrxMemoView.Create(Band2);Â Â Â Â
      Memo.SetBounds(left, 0, 100, 20);                                         Â
      Memo.DataSet := DataSet;           Â
      Memo.DataField :='FieldName';
I here I have a problem, because I don't know FieldName. I know only index.
Can I write DataSet.Field[0].Name ?
Comments
Can i access to dataset fields with an index ?
<frxDataset."MyField"> to frxDataset.Fields
here is a sample
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