Overload List
| # | Signature | Description |
|---|---|---|
| 1 | function GridToValues(Dst: TMtx; Src: TStringGrid; SrcRow, SrcCol, Row,Col, RowCount, ColCount: Integer; IsComplex: boolean = false): TMtx; overload; | Convert elements of the Src to values array of the Dst matrix. |
| 2 | function GridToValues(Dst: TMtx; Src: TStringGrid; IsComplex: boolean = false; Headers: boolean = True): TMtx; overload; | Convert all elements of the Src to values array of the Dst matrix. |
| 3 | function GridToValues(Dst: TVec; Src: TStringGrid; IsComplex: boolean = false; Vertical: boolean = True; Headers: boolean = True): TVec; overload; | Converts the content of TStringGrid to an array of values. |
| 4 | function GridToValues(Dst: TVec; Src: TStringGrid; SrcRow,SrcCol,Index,Len: integer; IsComplex: boolean; Vertical: boolean = True): TVec; overload; | Converts elements of the Src to values array of the Dst. |
Overload 1: function GridToValues(Dst: TMtx; Src: TStringGrid; SrcRow, SrcCol, Row,Col, RowCount, ColCount: Integer; IsComplex: boolean = false): TMtx; overload;
Convert elements of the Src to values array of the Dst matrix.
| # | Name | Type | Description |
|---|---|---|---|
| 1 | Dst | TMtx | |
| 2 | Src | TStringGrid | |
| 3 | SrcRow | Integer | |
| 4 | SrcCol | Integer | |
| 5 | Row | Integer | |
| 6 | Col | Integer | |
| 7 | RowCount | Integer | |
| 8 | ColCount | Integer | |
| 9 | IsComplex | boolean |
Returns: TMtx
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 [SrcRow,SrcCol] cells and stops at [SrcRow+RowCount,SrcCol+ColCount] cell. Values are then copied to the Dst [Row,Col]..[Row+RowCount,Col+ColCount] submatrix.
The size of the Dst matrix must be set explicitely.
Overload 2: function GridToValues(Dst: TMtx; Src: TStringGrid; IsComplex: boolean = false; Headers: boolean = True): TMtx; overload;
Convert all elements of the Src to values array of the Dst matrix.
| # | Name | Type | Description |
|---|---|---|---|
| 1 | Dst | TMtx | |
| 2 | Src | TStringGrid | |
| 3 | IsComplex | boolean | |
| 4 | Headers | boolean |
Returns: TMtx
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.
Overload 3: function GridToValues(Dst: TVec; Src: TStringGrid; IsComplex: boolean = false; Vertical: boolean = True; Headers: boolean = True): TVec; overload;
Converts the content of TStringGrid to an array of values.
| # | Name | Type | Description |
|---|---|---|---|
| 1 | Dst | TVec | |
| 2 | Src | TStringGrid | |
| 3 | IsComplex | boolean | |
| 4 | Vertical | boolean | |
| 5 | Headers | boolean |
Returns: TVec
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]
Note
The Length of the Dst vector is set automatically.
Overload 4: function GridToValues(Dst: TVec; Src: TStringGrid; SrcRow,SrcCol,Index,Len: integer; IsComplex: boolean; Vertical: boolean = True): TVec; overload;
Converts elements of the Src to values array of the Dst.
| # | Name | Type | Description |
|---|---|---|---|
| 1 | Dst | TVec | |
| 2 | Src | TStringGrid | |
| 3 | SrcRow | integer | |
| 4 | SrcCol | integer | |
| 5 | Index | integer | |
| 6 | Len | integer | |
| 7 | IsComplex | boolean | |
| 8 | Vertical | boolean |
Returns: TVec
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.
Note
The Length of the Dst vector is not changed and must be preset.