TMtxDataset Class

Header: Dew.Math.Controls.VCL/MtxVecDBTools.h · C++Builder only
TComponentTMtxDataset

class TMtxDataset : public TComponent;

Connects database numeric or BLOB fields and TVec objects.

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 TMtxDataset::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 TMtxDataset::ReadDataset method to read all values from dataset. The results are stored in VecColumns.Items[i].Vector. Alternatively, you can do the TMtxDataset::ReadDataset method for individual fields (TMtxDataset.VecColumns.Items[i].ReadDataset).

Constructors

NameDescription
TMtxDataset

Destructors

NameDescription
~TMtxDataset

Properties

NameTypeDescription
AfterReadDatasetTNotifyEventEvent triggered after the TMtxDataset::ReadDataset method call.
DatasetTDataSet*Component dataset.
ReadWriteModeTReadWriteModeDefines how component will read/write values from/to dataset fields.
VecColumnsTVecColumns*A collection of TVecColumn.

Methods

NameDescription
Assign
ClearClears all items in the VecColumns collection.
ClearDataSets VecColumns vectors to zero length (clears values).
ColumnsToMtxCopies values from all VecColumns to specified matrix.
DefineProperties
GetAfterReadDataset
GetDataset
GetReadWriteMode
GetVecColumns
ReadDatasetReads the contents of underlying fields.
ReadVecColumns
SetAfterReadDataset
WriteVecColumns

Fields

NameTypeDescription
IUpdatingbool