type TMtxDataset = class(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.<p> <b>How to use TMtxDataset component?</b> 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 <see cref="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 <See cref="ReadDataset"/> method to read all values from dataset. The results are stored in VecColumns.Items[i].Vector. Alternatively, you can do the <See cref="ReadDataset"/> method for individual fields (TMtxDataset.VecColumns.Items[i].ReadDataset).
Methods
| Name | Description |
|---|---|
| Assign | |
| Clear | Clears all items in the VecColumns collection. |
| ClearData | Sets VecColumns vectors to zero length (clears values). |
| ColumnsToMtx | Copies values from all VecColumns to specified matrix. |
| Create | |
| Destroy | |
| ReadDataset | Reads the contents of underlying fields. |