MatrixInt::ValuesToStrings Method

Overload List

#SignatureDescription
1void ValuesToStrings(tStrings *dstList, const DewString &Delimiter = kTab, const TFixedTextAlign Align = TFixedTextAlign::ftaNone, const bool Headers = false, const int ColumnWidth = - 1) const;Converts the content of the matrix Values array to a list of strings.
2void ValuesToStrings(tStrings *dstList, const int ListIndex, const int Row, const int Col, const int RowCount, const int ColCount, const DewString &Delimiter = kTab, const TFixedTextAlign Align = TFixedTextAlign::ftaNone, const bool Headers = false, const int ColumnWidth = - 1) const;Convert calling matrix elements, starting with [Row,Col] and up to [Row+RowCount-1,Col+ColCount-1] elements to strings.
3void ValuesToStrings(DewArray<DewString> &aList, const DewString &Delimiter = kTab) const;
4void ValuesToStrings(DewArray<DewString> &aList, const int ListIndex, const int Row, const int Col, const int RowCount, const int ColCount, const DewString &Delimiter = kTab) const;

Overload 1: void ValuesToStrings(tStrings *dstList, const DewString &Delimiter = kTab, const TFixedTextAlign Align = TFixedTextAlign::ftaNone, const bool Headers = false, const int ColumnWidth = - 1) const;

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

#NameTypeDescription
1dstListtStrings *
2Delimiter = kTabconst DewString &
3Align = TFixedTextAlign::ftaNoneconst TFixedTextAlign
4Headers = falseconst bool
5ColumnWidth = - 1const int
Remarks:

Convert all elements of the calling matrix to strings with text delimiter Delimiter and store them in aList, by using the Add method of TStrings object. Set Align to have columns aligned left or right when using fixed width font (like Courier New). Specifiy Headers to be "true", if row and column labels are to be printed.

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: MatrixInt::StringsToValues
Declared in Dew::Math::MatrixInt · Dew.Math/MtxExprInt.h · Cross-compiler

Overload 2: void ValuesToStrings(tStrings *dstList, const int ListIndex, const int Row, const int Col, const int RowCount, const int ColCount, const DewString &Delimiter = kTab, const TFixedTextAlign Align = TFixedTextAlign::ftaNone, const bool Headers = false, const int ColumnWidth = - 1) const;

Convert calling matrix elements, starting with [Row,Col] and up to [Row+RowCount-1,Col+ColCount-1] elements to strings.

#NameTypeDescription
1dstListtStrings *
2ListIndexconst int
3Rowconst int
4Colconst int
5RowCountconst int
6ColCountconst int
7Delimiter = kTabconst DewString &
8Align = TFixedTextAlign::ftaNoneconst TFixedTextAlign
9Headers = falseconst bool
10ColumnWidth = - 1const int
Remarks:

Use text Delimiter for columns and store the resulting strings in aList starting at ListIndex. If aList is not large enough, the method will use the Add method of aList object. Existing items will be overwritten. Set Align to have columns aligned left or right when using fixed width font (like Courier New). Specifiy Headers to be "true", if row and column labels are to be printed.

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

Overload 3: void ValuesToStrings(DewArray<DewString> &aList, const DewString &Delimiter = kTab) const;

#NameTypeDescription
1aListDewArray<DewString> &
2Delimiter = kTabconst DewString &
Declared in Dew::Math::MatrixInt · Dew.Math/MtxExprInt.h · Cross-compiler

Overload 4: void ValuesToStrings(DewArray<DewString> &aList, const int ListIndex, const int Row, const int Col, const int RowCount, const int ColCount, const DewString &Delimiter = kTab) const;

#NameTypeDescription
1aListDewArray<DewString> &
2ListIndexconst int
3Rowconst int
4Colconst int
5RowCountconst int
6ColCountconst int
7Delimiter = kTabconst DewString &
Declared in Dew::Math::MatrixInt · Dew.Math/MtxExprInt.h · Cross-compiler