TMtxInt::ValuesToStrings Method

Overload List

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

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

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

#NameTypeDescription
1dstListtStrings *
2Delimiterconst DewString &
3Alignconst TFixedTextAlign
4Headersconst bool
5ColumnWidth = - 1const int
Remarks:

Convert all elements of the calling matrix to strings with text delimiter Delimiter and store them in dstList, 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. Use TStringList or StringList types and then call Memo.Lines.AddStrings(yourList) for best results.

See Also: TMtxInt::StringsToValues
Declared in Dew::Math::TMtxInt · Dew.Math/MtxVecInt.h · Cross-compiler

Overload 2: int ValuesToStrings(tStrings *dstList, const DewString &Delimiter = kTab, const TFixedTextAlign Align = TFixedTextAlign::ftaNone);

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

#NameTypeDescription
1dstListtStrings *
2Delimiter = kTabconst DewString &
3Align = TFixedTextAlign::ftaNoneconst TFixedTextAlign
Remarks:

Performance note:
This routine will be exceedingly slow, if TRichEdit.Lines or TMemo.Lines are passed as a parameter. Use TStringList or StringList types and then call Memo.Lines.AddStrings(yourList) for best results.

Declared in Dew::Math::TMtxInt · Dew.Math/MtxVecInt.h · Cross-compiler

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

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

#NameTypeDescription
1dstListtStrings *
2ListIndexint
3Rowint
4Colint
5RowCountint
6ColCountint
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 dstList starting at ListIndex. If dstList is not large enough, the method will use the Add method of dstList 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. Use TStringList or StringList types and then call Memo.Lines.AddStrings(yourList) for best results.

Declared in Dew::Math::TMtxInt · Dew.Math/MtxVecInt.h · Cross-compiler

Overload 4: void ValuesToStrings(DewArray<DewString> &aList, const DewString &Delimiter = kTab, const TFixedTextAlign Align = TFixedTextAlign::ftaNone, const bool Headers = false);

#NameTypeDescription
1aListDewArray<DewString> &
2Delimiter = kTabconst DewString &
3Align = TFixedTextAlign::ftaNoneconst TFixedTextAlign
4Headers = falseconst bool
Declared in Dew::Math::TMtxInt · Dew.Math/MtxVecInt.h · Cross-compiler

Overload 5: void ValuesToStrings(DewArray<DewString> &aList, int ListIndex, int Row, int Col, int RowCount, int ColCount, const DewString &Delimiter = kTab, const TFixedTextAlign Align = TFixedTextAlign::ftaNone, const bool Headers = false);

#NameTypeDescription
1aListDewArray<DewString> &
2ListIndexint
3Rowint
4Colint
5RowCountint
6ColCountint
7Delimiter = kTabconst DewString &
8Align = TFixedTextAlign::ftaNoneconst TFixedTextAlign
9Headers = falseconst bool
Declared in Dew::Math::TMtxInt · Dew.Math/MtxVecInt.h · Cross-compiler