You are here: Symbol Reference > MtxExprInt Namespace > Classes > MatrixInt Record > public > ValuesToStrings Method > MatrixInt.ValuesToStrings Method (TStrings, integer, integer, integer, integer, integer, string, TFixedTextAlign, boolean)
MtxVec VCL
ContentsIndex
PreviousUpNext
MatrixInt.ValuesToStrings Method (TStrings, integer, integer, integer, integer, integer, string, TFixedTextAlign, boolean)

Convert calling matrix elements, starting with [Row,Col] and up to [Row+RowCount-1,Col+ColCount-1] elements to strings.

Pascal
procedure ValuesToStrings(const dstList: TStrings; const ListIndex: integer; const Row: integer; const Col: integer; const RowCount: integer; const ColCount: integer; const Delimiter: string = kTab; const Align: TFixedTextAlign = ftaNone; const Headers: boolean = false); overload;

Use text Delimiter for columns and store the resulting strings in aList starting at ListIndex. If aList is not large enough, the method will use the Add method of aList object. Existing items will be overwritten. Set Align to have columns aligned left or right when using fixed width font (like Courier New). Specifiy Headers to be "true", if row and column labels are to be printed. 

Performance note: This routine will be exceedingly slow, if TRichEdit.Lines or TMemo.Lines are passed as a parameter for dstList. Use TStringList or StringList types and then call TMemo.Lines.AddStrings(yourList) for best results.

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