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

Converts elements of the Src to values array of the Dst.

Pascal
function GridToValues(Dst: TVec; Src: TStringGrid; SrcRow: integer; SrcCol: integer; Index: integer; Len: integer; IsComplex: boolean; Vertical: boolean = True): TVec; overload;

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 a single complex value. If IsComplex is false then single horizontal/vertical cell will be treated as a separate real value. The acquisition starts at [SrcRow,SrcCol] cells and stops at [SrcRow+Len,SrcCol+1(or two for complex)] cell. Values are copied then copied to calling vector [Index,Index+Len] values array.

The Length of the Dst vector is not changed and must be preset.

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