Vector::ValuesToStrings Method

Overload List

#SignatureDescription
1void ValuesToStrings(DewArray<DewString> &aList) const;Writes vector values to string array.
2void ValuesToStrings(DewArray<DewString> &aList, const TFixedTextAlign Align = TFixedTextAlign::ftaNone, const DewString &ReFormat = " 0.###;-0.###", const DewString &ImFormat = "+0.###i;-0.###i", const bool Headers = false) const;
3void ValuesToStrings(DewArray<DewString> &aList, int ListIndex, int Index, int Len, const TFixedTextAlign Align = TFixedTextAlign::ftaNone, const DewString &ReFormat = " 0.###;-0.###", const DewString &ImFormat = "+0.###i;-0.###i", const bool Headers = false) const;
4int ValuesToStrings(tStrings *dstList, const TFixedTextAlign Align = TFixedTextAlign::ftaNone, const DewString &ReFormat = " 0.###;-0.###", const DewString &ImFormat = "+0.###i;-0.###i", const bool Headers = false, const int ColumnWidth = - 1) const;Converts the content of the Values array of the calling vector to a list of strings.
5void ValuesToStrings(tStrings *dstList, int ListIndex, int Index, int Len, const TFixedTextAlign Align = TFixedTextAlign::ftaNone, const DewString &ReFormat = " 0.###;-0.###", const DewString &ImFormat = "+0.###i;-0.###i", const bool Headers = false, const int ColumnWidth = - 1) const;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.

Overload 1: void ValuesToStrings(DewArray<DewString> &aList) const;

Writes vector values to string array.

#NameTypeDescription
1aListDewArray<DewString> &
Declared in Dew::Math::Vector · Dew.Math/MtxExpr.h · Cross-compiler

Overload 2: void ValuesToStrings(DewArray<DewString> &aList, const TFixedTextAlign Align = TFixedTextAlign::ftaNone, const DewString &ReFormat = " 0.###;-0.###", const DewString &ImFormat = "+0.###i;-0.###i", const bool Headers = false) const;

#NameTypeDescription
1aListDewArray<DewString> &
2Align = TFixedTextAlign::ftaNoneconst TFixedTextAlign
3ReFormat = " 0.###;-0.###"const DewString &
4ImFormat = "+0.###i;-0.###i"const DewString &
5Headers = falseconst bool
Declared in Dew::Math::Vector · Dew.Math/MtxExpr.h · Cross-compiler

Overload 3: void ValuesToStrings(DewArray<DewString> &aList, int ListIndex, int Index, int Len, const TFixedTextAlign Align = TFixedTextAlign::ftaNone, const DewString &ReFormat = " 0.###;-0.###", const DewString &ImFormat = "+0.###i;-0.###i", const bool Headers = false) const;

#NameTypeDescription
1aListDewArray<DewString> &
2ListIndexint
3Indexint
4Lenint
5Align = TFixedTextAlign::ftaNoneconst TFixedTextAlign
6ReFormat = " 0.###;-0.###"const DewString &
7ImFormat = "+0.###i;-0.###i"const DewString &
8Headers = falseconst bool
Declared in Dew::Math::Vector · Dew.Math/MtxExpr.h · Cross-compiler

Overload 4: int ValuesToStrings(tStrings *dstList, const TFixedTextAlign Align = TFixedTextAlign::ftaNone, const DewString &ReFormat = " 0.###;-0.###", const DewString &ImFormat = "+0.###i;-0.###i", const bool Headers = false, const int ColumnWidth = - 1) const;

Converts the content of the Values array of the calling vector to a list of strings.

#NameTypeDescription
1dstListtStrings *
2Align = TFixedTextAlign::ftaNoneconst TFixedTextAlign
3ReFormat = " 0.###;-0.###"const DewString &
4ImFormat = "+0.###i;-0.###i"const DewString &
5Headers = falseconst bool
6ColumnWidth = - 1const int
Remarks:

Converts all elements of the calling vector to strings with formating ReFormat for the real part and ImFormat for the imaginary part and stores them in aList, by using the Add method of TStringsobject. If vector is not complex only the ReFormat is used.

Note
Complex numbers are formated by default as: a+bi. You can have any formating by specifying the ReFormat and ImFormat parameters, but in order for the to work, the basic a+bi formating must be preserved - (chars '+' (' - ') and 'i' ).

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.

See Also: Vector::StringsToValues
Declared in Dew::Math::Vector · Dew.Math/MtxExpr.h · Cross-compiler

Overload 5: void ValuesToStrings(tStrings *dstList, int ListIndex, int Index, int Len, const TFixedTextAlign Align = TFixedTextAlign::ftaNone, const DewString &ReFormat = " 0.###;-0.###", const DewString &ImFormat = "+0.###i;-0.###i", const bool Headers = false, const int ColumnWidth = - 1) const;

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.

#NameTypeDescription
1dstListtStrings *
2ListIndexint
3Indexint
4Lenint
5Align = TFixedTextAlign::ftaNoneconst TFixedTextAlign
6ReFormat = " 0.###;-0.###"const DewString &
7ImFormat = "+0.###i;-0.###i"const DewString &
8Headers = falseconst bool
9ColumnWidth = - 1const int
Remarks:

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.

Declared in Dew::Math::Vector · Dew.Math/MtxExpr.h · Cross-compiler