You are here: Symbol Reference > MtxVecDBTools Namespace > Classes > TMtxDataset Class > published > TMtxDataset.Dataset Property
MtxVec VCL
ContentsIndex
PreviousUpNext
TMtxDataset.Dataset Property

Component dataset.

Pascal
property Dataset: TDataset;

Defines the component dataset. Setting the Dataset to nil will set all TVecColumn.FieldName to null string.

Set the Dataset property before you set the TVecColumn.FieldName property.

Connect MtxDataSet to Table1 and read numeric values from two fields. 

 

procedure TForm1.FormCreate(Sender: TObject); begin MtxDataSet.Dataset := Table1; MtxDataSet.VecColumns.Clear; with MtxDataset.VecColumns.Add do begin FieldName := 'ShipDate'; ReadWriteMode := wmColumn; end; MtxDataSet.ReadDataset; end;
void __fastcall TForm1::FormCreate(TObject *Sender) { MtxDataSet->Dataset = Table1; MtxDataSet->VecColumns->Clear(); TVecColumn *col; col = MtxDataSet->VecColumns->Add(); col->FieldName = "ShipDate"; col->ReadWriteMode = wmColumn; MtxDataSet->ReadDataset(false); }
Examples on GitHub
Copyright (c) 1999-2025 by Dew Research. All rights reserved.
What do you think about this topic? Send feedback!