You are here: Symbol Reference > Dew Namespace > Dew.Math Namespace > Dew.Math.Controls Namespace > Classes > MtxDataset Class
Dew Math for .NET
ContentsIndexHome
PreviousUpNext
MtxDataset Class

Connects database numeric or byte[] field(s) and TVec object.

Dew_Math_Controls_MtxDataset
Syntax
C#
Visual Basic
public class MtxDataset : System.ComponentModel.Component;

DBTools.cs

The control connects datatable numeric or binary fields with Vector objects. Then you can pass VecColumns.Items[i].Vector objects to other MtxVec procedures/functions/methods. 

How to use TMtxDataset component?

  • Create an instance of MtxDataset class.
  • Assign DataTable property of it with existing DataTable object.
  • Add columns by calling VecColumns.Add method.
  • Connect each VecColumn to a specific column in table by setting ColumnName property. Define the ReadWriteMode for each VecColumn.
  • At runtime, call the ReadDataRow method to read all values from table. The results are stored in VecColumns.Items[i].Vector. Alternatively, you can do the ReadDataRow method for individual columns (TMtxDataset.VecColumns.Items[i].ReadDataRow).

 

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