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

Convert calling matrix elements, starting with [Row,Col] until [row + RowCount, col + ColCount] converting Len elements to strings.

Pascal
procedure ValuesToStrings(const dstList: TStrings; ListIndex: integer; Row: integer; Col: integer; RowCount: integer; ColCount: integer; const Delimiter: string = kTab; const Align: TFixedTextAlign = ftaNone; const ReFormat: string = ' 0.######;-0.######'; const ImFormat: string = '+0.######i;-0.######i'; const Headers: boolean = false); overload;

Formatting real parts with ReFormat, imaginary parts with ImFormat, using the text delimiter Delimiter and store them in dstList starting at ListIndex. If dstList is not large enough, the method will use the Add method of dstList object. 

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!