You are here: Symbol Reference > Dew Namespace > Dew.Math Namespace > Dew.Math.Controls Namespace > Classes > VecColumn Class > VecColumn Methods > ReadDataRow Method > VecColumn.ReadDataRow Method (DataRow, bool)
Dew Math for .NET
ContentsIndexHome
PreviousUpNext
VecColumn.ReadDataRow Method (DataRow, bool)

Reads the contents of underlying field and stores it's contents in vector.

Syntax
C#
Visual Basic
public void ReadDataRow(DataRow row, bool ReadAsComplex);
Parameters 
Description 
DataRow row 
Defines the row to read from. 
bool ReadAsComplex 
Read values as complex numbers or as real numbers. Meaningfull only if Dew.Math.Controls.ReadWriteMode is Dew.Math.Controls.ReadWriteMode.wmColumn

Depending on MtxDataset.ReadWriteMode the following operation is performed:

  • wmRecord => read all crefVector properties from given row. The underlying table field must be BLOB field (i.e. array of byte), otherwise an exception is raised.
  • wmColumn => read values of the underlying field from all rows and store them to crefVector Values. If the ReadAsComplex parameter is true then two consecutive dataset records are treated as real and imaginary part of complex number. By default, ReadAsComplex is false meaning each record in dataset is treated as one real number. The Vector size is adjusted automatically.
Copyright (c) 1999-2024 by Dew Research. All rights reserved.
What do you think about this topic? Send feedback!