Overload List
| # | Signature | Description |
|---|---|---|
| 1 | function StringsToValues(const aList: TStrings): VectorInt; | Converts a list of strings to VectorInt. |
| 2 | function StringsToValues(const aList: TStrings; const ListIndex: Integer; const ListLen: Integer; const Row: Integer; const Col: Integer; Delimiter: string): MatrixInt; | Converts a list of strings to MatrixInt. |
| 3 | function StringsToValues(const aList: TStrings; const Delimiter: string): MatrixInt; | Converts a list of strings to MatrixInt. |
| 4 | function StringsToValues(const aList: TStrings; const ListIndex: Integer; const Index: Integer; const Len: Integer): VectorInt; | Converts a list of strings to VectorInt. |
Overload 1: function StringsToValues(const aList: TStrings): VectorInt;
Converts a list of strings to VectorInt.
| # | Name | Type | Description |
|---|---|---|---|
| 1 | aList | TStrings |
Returns: VectorInt
Remarks:
Internally calls TVecInt.StringsToValues
Examples
var a,b: TVec;
begin
CreateIt(a,b);
try
a.SetIt(False,[1,2,3,4]);
a.cos;
b.Size(a);
b.SetVal(1);
a.Add(b);
Richedit1.Clear;
Memo1.Clear;
a.ValuesToStrings(Richedit1.Lines);
b.ValuesToStrings(Richedit1.Lines);
a.ValuesToStrings(Memo1.Lines);
b.ValuesToStrings(Memo1.Lines);
Memo1.Lines.SaveToFile('C:\Test.txt');
Memo1.Lines.LoadFromFile('C:\Test.txt');
a.StringsToValues(Memo1.Lines);
finally
FreeIt(a,b);
end;
end;
Overload 2: function StringsToValues(const aList: TStrings; const ListIndex: Integer; const ListLen: Integer; const Row: Integer; const Col: Integer; Delimiter: string): MatrixInt;
Converts a list of strings to MatrixInt.
| # | Name | Type | Description |
|---|---|---|---|
| 1 | aList | TStrings | |
| 2 | ListIndex | Integer | |
| 3 | ListLen | Integer | |
| 4 | Row | Integer | |
| 5 | Col | Integer | |
| 6 | Delimiter | string |
Returns: MatrixInt
Remarks:
Internally calls TMtxInt.StringsToValues
Overload 3: function StringsToValues(const aList: TStrings; const Delimiter: string): MatrixInt;
Converts a list of strings to MatrixInt.
| # | Name | Type | Description |
|---|---|---|---|
| 1 | aList | TStrings | |
| 2 | Delimiter | string |
Returns: MatrixInt
Remarks:
Internally calls TMtxInt.StringsToValues
Examples
var a,b: TMtx;
begin
CreateIt(a,b);
try
a.SetIt(2,2,False,[1,2,3,4]);
a.Cos;
b.Size(a);
b.SetVal(1);
a.Add(b);
Richedit1.Clear;
Memo1.Clear;
a.ValuesToStrings(Richedit1.Lines);
b.ValuesToStrings(Richedit1.Lines);
a.ValuesToStrings(Memo1.Lines);
b.ValuesToStrings(Memo1.Lines);
Memo1.Lines.SaveToFile('C:\Test.txt');
Memo1.Lines.LoadFromFile('C:\Test.txt');
a.StringsToValues(Memo1.Lines);
finally
FreeIt(a,b);
end;
end;
Overload 4: function StringsToValues(const aList: TStrings; const ListIndex: Integer; const Index: Integer; const Len: Integer): VectorInt;
Converts a list of strings to VectorInt.
| # | Name | Type | Description |
|---|---|---|---|
| 1 | aList | TStrings | |
| 2 | ListIndex | Integer | |
| 3 | Index | Integer | start index |
| 4 | Len | Integer | element count |
Returns: VectorInt
Remarks:
Internally calls TVecInt.StringsToValues