TVecInt::ValuesToStrings Method

Overload List

#SignatureDescription
1int ValuesToStrings(tStrings *dstList, const TFixedTextAlign Align = TFixedTextAlign::ftaNone, const bool Headers = false, const int ColumnWidth = - 1);Converts the content of the Values array of the calling vector to a list of strings.
2int ValuesToStrings(tStrings *dstList, int ListIndex, int Index, int Len, const TFixedTextAlign Align = TFixedTextAlign::ftaNone, const bool Headers = false, const int ColumnWidth = - 1);Convert elements from Index to Index+Len-1 of the calling vector to strings.
3void ValuesToStrings(DewArray<DewString> &aList, const TFixedTextAlign Align = TFixedTextAlign::ftaNone, const bool Headers = false);
4void ValuesToStrings(DewArray<DewString> &aList, int ListIndex, int Index, int Len, const TFixedTextAlign Align = TFixedTextAlign::ftaNone, const bool Headers = false);

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

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

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

Converts all elements of the calling vector to strings with specified formating and stores them in dstList, by using the Add method of TStrings object. Values are appended to existing content of dstList. Set Equidistant to True, if you are using fixed width font and need to have the text right aligned.

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

Overload 2: int ValuesToStrings(tStrings *dstList, int ListIndex, int Index, int Len, const TFixedTextAlign Align = TFixedTextAlign::ftaNone, const bool Headers = false, const int ColumnWidth = - 1);

Convert elements from Index to Index+Len-1 of the calling vector to strings.

#NameTypeDescription
1dstListtStrings *
2ListIndexint
3Indexint
4Lenint
5Align = TFixedTextAlign::ftaNoneconst TFixedTextAlign
6Headers = falseconst bool
7ColumnWidth = - 1const int
Remarks:

Store values in dstList starting at ListIndex. If dstList is not large enough, the method will use the add method of dstList object. Set Equidistant to True, if you are using fixed width font and need to have the text right aligned.

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

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

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

Overload 4: void ValuesToStrings(DewArray<DewString> &aList, int ListIndex, int Index, int Len, const TFixedTextAlign Align = TFixedTextAlign::ftaNone, const bool Headers = false);

#NameTypeDescription
1aListDewArray<DewString> &
2ListIndexint
3Indexint
4Lenint
5Align = TFixedTextAlign::ftaNoneconst TFixedTextAlign
6Headers = falseconst bool
Declared in Dew::Math::TVecInt · Dew.Math/MtxVecInt.h · Cross-compiler