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

Convert elements from Index to Index+Len-1 of the calling vector to strings.

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;

Use ReFormat for the real part and ImFormat for the imaginary part and store them in dstList starting at ListIndex. If dstList is not large enough, the method will use the add method of dstList 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!