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

Converts the content of TStringGrid to an array of values.

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

Converts all elements of the Src to values array of the Dst. If Vertical is true then each row will be treated as separate number. If Vertical is false then each column will be treated as separate number. If IsComplex is true then two horizontal/vertical cells in stringgrid will be treated as single complex value. If IsComplex is false then single horizontal/vertical 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 Length of the Dst vector is set automatically.

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