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

Connects database numeric or BLOB fields and TVec objects.

MtxVecDBTools_TMtxDataset
Pascal
TMtxDataset = class(TComponent);

The TMtxDataset component connects database numeric or BLOB fields and TVec objects. Then you can pass VecColumns.Items[i].Vector TVec objects to other MtxVec procedures/functions/methods. 

 

How to use TMtxDataset component? 

 

  1. Drop a TMtxDataset component on the form.
  2. Place any TDataset descendant on the form (TTable, TQuery, TIBTable, ...). Then define the TDataset properties (table name, etc...),
  3. Connect the TMtxDataset and TDataset by setting the Dataset property.
  4. Click on TMtxDataset.VecColumns property => add as many TVecColumn objects as you want.
  5. Connect each TVecColumn to a specific field in dataset. Define the ReadWriteMode for each VecColumn.
  6. At runtime, call the method to read all values from dataset. The results are stored in

VecColumns.Items[i].Vector. Alternatively, you can do the ReadDataset method for individual fields (TMtxDataset.VecColumns.Items[i].ReadDataset).

Copyright (c) 1999-2025 by Dew Research. All rights reserved.
What do you think about this topic? Send feedback!