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

Convert calling matrix elements, starting with [Row,Col] and converting Len elements to strings with formating real parts with ReFormat, imaginary parts with ImFormat.

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;

Uses the text delimiter Delimiter and store them in aList starting at ListIndex. If aList is not large enough, the method will use the add method of aList 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!