TMtx::ValuesToStrings Method

Overload List

#SignatureDescription
1int ValuesToStrings(tStrings *dstList, const DewString &Delimiter = kTab, 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);Converts the content of the matrix Values array to a list of strings.
2int ValuesToStrings(tStrings *dstList, int ListIndex, int Row, int Col, int RowCount, int ColCount, const DewString &Delimiter = kTab, 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);Convert calling matrix elements, starting with [Row,Col] until [row + RowCount, col + ColCount] converting Len elements to strings.
3void ValuesToStrings(DewArray<DewString> &aList, const DewString &Delimiter = kTab, const TFixedTextAlign Align = TFixedTextAlign::ftaNone, const DewString &ReFormat = " 0.###;-0.###", const DewString &ImFormat = "+0.###i;-0.###i", const bool Headers = false);
4void ValuesToStrings(DewArray<DewString> &aList, int ListIndex, int Row, int Col, int RowCount, int ColCount, DewString Delimiter = kTab, const TFixedTextAlign Align = TFixedTextAlign::ftaNone, const DewString &ReFormat = " 0.###;-0.###", const DewString &ImFormat = "+0.###i;-0.###i", const bool Headers = false);

Overload 1: int ValuesToStrings(tStrings *dstList, const DewString &Delimiter = kTab, 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);

Converts the content of the matrix Values array to a list of strings.

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

Convert all elements of the calling matrix to strings with formating real parts with ReFormat, imaginary parts with ImFormat, using the text delimiter Delimiter and store them in dstList, by using the Add method of TStrings 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.

See Also: TMtx::StringsToValues
Declared in Dew::Math::TMtx · Dew.Math/MtxVec.h · Cross-compiler

Overload 2: int ValuesToStrings(tStrings *dstList, int ListIndex, int Row, int Col, int RowCount, int ColCount, const DewString &Delimiter = kTab, 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);

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

#NameTypeDescription
1dstListtStrings *
2ListIndexint
3Rowint
4Colint
5RowCountint
6ColCountint
7Delimiter = kTabconst DewString &
8Align = TFixedTextAlign::ftaNoneconst TFixedTextAlign
9ReFormat = " 0.######;-0.######"const DewString &
10ImFormat = "+0.######i;-0.######i"const DewString &
11Headers = falseconst bool
12ColumnWidth = - 1const int
Remarks:

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.

Returns column width, when alignment is other than none.

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::TMtx · Dew.Math/MtxVec.h · Cross-compiler

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

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

Overload 4: void ValuesToStrings(DewArray<DewString> &aList, int ListIndex, int Row, int Col, int RowCount, int ColCount, DewString Delimiter = kTab, const TFixedTextAlign Align = TFixedTextAlign::ftaNone, const DewString &ReFormat = " 0.###;-0.###", const DewString &ImFormat = "+0.###i;-0.###i", const bool Headers = false);

#NameTypeDescription
1aListDewArray<DewString> &
2ListIndexint
3Rowint
4Colint
5RowCountint
6ColCountint
7Delimiter = kTabDewString
8Align = TFixedTextAlign::ftaNoneconst TFixedTextAlign
9ReFormat = " 0.###;-0.###"const DewString &
10ImFormat = "+0.###i;-0.###i"const DewString &
11Headers = falseconst bool
Declared in Dew::Math::TMtx · Dew.Math/MtxVec.h · Cross-compiler