Overload List
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.
| # | Name | Type | Description |
|---|---|---|---|
| 1 | dstList | tStrings * | |
| 2 | Delimiter | const DewString & | |
| 3 | Align | const TFixedTextAlign | |
| 4 | Headers | const bool | |
| 5 | ColumnWidth = - 1 | const int |
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.
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.
| # | Name | Type | Description |
|---|---|---|---|
| 1 | dstList | tStrings * | |
| 2 | Delimiter = kTab | const DewString & | |
| 3 | Align = TFixedTextAlign::ftaNone | const TFixedTextAlign |
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.
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.
| # | Name | Type | Description |
|---|---|---|---|
| 1 | dstList | tStrings * | |
| 2 | ListIndex | int | |
| 3 | Row | int | |
| 4 | Col | int | |
| 5 | RowCount | int | |
| 6 | ColCount | int | |
| 7 | Delimiter = kTab | const DewString & | |
| 8 | Align = TFixedTextAlign::ftaNone | const TFixedTextAlign | |
| 9 | Headers = false | const bool | |
| 10 | ColumnWidth = - 1 | const int |
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.
Overload 4: void ValuesToStrings(DewArray<DewString> &aList, const DewString &Delimiter = kTab, const TFixedTextAlign Align = TFixedTextAlign::ftaNone, const bool Headers = false);
| # | Name | Type | Description |
|---|---|---|---|
| 1 | aList | DewArray<DewString> & | |
| 2 | Delimiter = kTab | const DewString & | |
| 3 | Align = TFixedTextAlign::ftaNone | const TFixedTextAlign | |
| 4 | Headers = false | const bool |
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);
| # | Name | Type | Description |
|---|---|---|---|
| 1 | aList | DewArray<DewString> & | |
| 2 | ListIndex | int | |
| 3 | Row | int | |
| 4 | Col | int | |
| 5 | RowCount | int | |
| 6 | ColCount | int | |
| 7 | Delimiter = kTab | const DewString & | |
| 8 | Align = TFixedTextAlign::ftaNone | const TFixedTextAlign | |
| 9 | Headers = false | const bool |