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

Defines how component will read/write values from/to dataset fields.

Pascal
property ReadWriteMode: TReadWriteMode;

Defines how component will read/write values from/to dataset fields: 

 

  • If dataset fields are valid BLOB fields then set the ReadWriteMode to wmRecord. The ReadDataSet and WriteDataSet will read/write all vectors properties from/to dataset fields.
  • If dataset fields are numeric fields then set the ReadWriteMode to wmColumn. In this case ReadDataSet and WriteDataSet will read/write all vectors values from/to dataset field.

The ReadWriteMode does not actually check if dataset field type is correct. If you specify the wrong read/write mode an exception will be raised when you try to read/write from/to dataset.

Connect MtxDataSet to Table1 and read complete vectors from two BLOB fields. 

 

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