You are here: Symbol Reference > MtxVecDBTools Namespace > Classes > TMtxDataset Class > public > TMtxDataset.ReadDataset Method
MtxVec VCL
ContentsIndex
PreviousUpNext
TMtxDataset.ReadDataset Method

Reads the contents of underlying fields.

Pascal
procedure ReadDataset(ReadAsComplex: boolean = false);

Reads the contents of underlying fields, defined in VecColumns collection, and stores their contents in the corresponding VecColumns.Items[i].TVecColumn.Vector vectors. ReadDataset method performs a: 

 

If the ReadAsComplex parameter is true then two consecutive dataset records are treated as real and imaginary part of complex number. By default, ReadAsComplex is false meaning each record in dataset is treated as one real number. The ReadAsComplex parameter is the same for all VecColumns.

procedure TForm1.FormCreate(Sender: TObject); begin MtxDataSet.Dataset := Table1; MtxDataSet.ReadDataset; end;
void __fastcall TForm1::FormCreate(TObject *Sender) { MtxDataSet->Dataset = Table1; MtxDataSet->ReadDataset(false); }

 

Alternatively, you can do a ReadDaset operation on individual fields (a lot slower when you're reading from multiple fields): 

 

procedure TForm1.FormCreate(Sender: TObject); var i : Integer; begin MtxDataSet.Dataset := Table1; for i := 0 to MtxDataSet.VecColumns.Count - 1 do MtxDataSet.VecColumns[i].ReadDataset; end;
void __fastcall TForm1::FormCreate(TObject *Sender) { MtxDataSet->Dataset = Table1; for (int t=0; t<MtxDataset->VecColumns->Count; t++) MtxDataset->VecColumns->Items[t]->ReadDataset(false); }
Examples on GitHub
Copyright (c) 1999-2025 by Dew Research. All rights reserved.
What do you think about this topic? Send feedback!