MtxDialogs.ValuesToGrid Method

Overload List

#SignatureDescription
1procedure ValuesToGrid(Src: TMtx; Dst: TStringGrid; DstRow,DstCol: integer; SrcRow, SrcCol,RowCount,ColCount: integer; Format: string = '0.0000'; Headers: boolean = True); overload;Converts (RowCount*ColCount) elements starting at [SrcRow,SrcCol] of the Src matrix to strings.
2procedure ValuesToGrid(Src: TMtx; Dst: TStringGrid; DstRow, DstCol: integer; Format: string = '0.0000'; Headers: boolean = True); overload;Converts all elements of the Src matrix to strings
3procedure ValuesToGrid(Src: TVec; Dst: TStringGrid; DstRow,DstCol: integer; Format: string = ' 0.0000'; Headers: boolean = True; Vertical: boolean = True); overload;Converts an array of values to TStringGrid.
└ indexed: procedure ValuesToGrid(Src: TVec; Dst: TStringGrid; DstRow,DstCol, Index,Len: integer; Format: string = ' 0.0000'; Headers: boolean = True; Vertical: boolean = True); overload;

Overload 1: procedure ValuesToGrid(Src: TMtx; Dst: TStringGrid; DstRow,DstCol: integer; SrcRow, SrcCol,RowCount,ColCount: integer; Format: string = '0.0000'; Headers: boolean = True); overload;

Converts (RowCount*ColCount) elements starting at [SrcRow,SrcCol] of the Src matrix to strings.

#NameTypeDescription
1SrcTMtx
2DstTStringGrid
3DstRowinteger
4DstColinteger
5SrcRowinteger
6SrcColinteger
7RowCountinteger
8ColCountinteger
9Formatstring
10Headersboolean
Remarks:

The algorithm uses formating Format and stores them in Dst starting at [DstRow,DstCol]. If headers is True, the first row and first column are numbered. If Dst does not have enough rows and cols an exception is raised.

See Also: MtxDialogs.GridToValues, MtxDialogs.GridToValues, MtxDialogs.GridToValues, MtxDialogs.GridToValues

Overload 2: procedure ValuesToGrid(Src: TMtx; Dst: TStringGrid; DstRow, DstCol: integer; Format: string = '0.0000'; Headers: boolean = True); overload;

Converts all elements of the Src matrix to strings

#NameTypeDescription
1SrcTMtx
2DstTStringGrid
3DstRowinteger
4DstColinteger
5Formatstring
6Headersboolean
Remarks:

The routine uses formating Format and stores them in Dst starting at [DstRow,DstCol]. If headers is True, the first row and first column are numbered. If Dst does not have enough rows and cols an exception is raised.

Overload 3: procedure ValuesToGrid(Src: TVec; Dst: TStringGrid; DstRow,DstCol: integer; Format: string = ' 0.0000'; Headers: boolean = True; Vertical: boolean = True); overload;

Converts an array of values to TStringGrid.

#NameTypeDescription
1SrcTVec
2DstTStringGrid
3DstRowinteger
4DstColinteger
5Formatstring
6Headersboolean
7Verticalboolean
Remarks:

Convert all elements of the Src vector to strings with formating Format and store them in Dst starting at [DstRow,DstCol]. If headers is True, the first row and first column are numbered. If Dst does not have enough rows and cols an exception is raised. Vertical parameter determines, if the calling vector is displayed as a row or as a column vector in TStrinGrid.

Indexed: procedure ValuesToGrid(Src: TVec; Dst: TStringGrid; DstRow,DstCol, Index,Len: integer; Format: string = ' 0.0000'; Headers: boolean = True; Vertical: boolean = True); overload;

Convert only elements of the Src vector from Index to Index+Len to strings.

#NameTypeDescription
1SrcTVec
2DstTStringGrid
3DstRowinteger
4DstColinteger
5Indexinteger
6Leninteger
7Formatstring
8Headersboolean
9Verticalboolean
Remarks:

Uses the formating Format and stores them in Dst starting at [DstRow,DstCol]. If headers is True, the first row and first column are numbered. If Dst does not have enough rows and cols an exception is raised.

Vertical parameter determines, if the calling vector is displayed as a row or as a column vector in TStrinGrid.