You are here: Symbol Reference > MtxDialogs Namespace > Functions > MtxDialogs.GridToValues Function
MtxVec VCL
ContentsIndex
PreviousUpNext
MtxDialogs.GridToValues Function

Convert all elements of the Src to values array of the Dst matrix.

Pascal
function GridToValues(Dst: TMtx; Src: TStringGrid; IsComplex: boolean = false; Headers: boolean = True): TMtx; overload;

If IsComplex is true then two consecutive horizontal cells in TStringGrid will be treated as single complex value. If IsComplex is false then each horizontal cell will be treated as separate real value. The acquisition starts at [0,0]. If Headers is True, the first column and first row are ignored and submatrix starts at [1,1]. 

The Rows and Cols properties of the Dst matrix are set automatically.

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