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

Convert elements from Index to Index+Len-1 of the calling vector to strings with formating ReFormat for the real part and ImFormat for the imaginary part.

Pascal
procedure ValuesToStrings(const dstList: TStrings; ListIndex: integer; Index: integer; Len: integer; const Align: TFixedTextAlign = ftaNone; const ReFormat: string = ' 0.###;-0.###'; const ImFormat: string = '+0.###i;-0.###i'; const Headers: boolean = false); overload;

Store them in aList starting at ListIndex. If aList is not large enough, the method will use the add method of aList object. If vector is not complex, only the ReFormat is used. 

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!