MtxExprInt.StringsToValues Method

Overload List

#SignatureDescription
1function StringsToValues(const aList: TStrings): VectorInt;Converts a list of strings to VectorInt.
2function 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.
3function StringsToValues(const aList: TStrings; const Delimiter: string): MatrixInt;Converts a list of strings to MatrixInt.
4function 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.

#NameTypeDescription
1aListTStrings

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.

#NameTypeDescription
1aListTStrings
2ListIndexInteger
3ListLenInteger
4RowInteger
5ColInteger
6Delimiterstring

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.

#NameTypeDescription
1aListTStrings
2Delimiterstring

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.

#NameTypeDescription
1aListTStrings
2ListIndexInteger
3IndexIntegerstart index
4LenIntegerelement count

Returns: VectorInt

Remarks:

Internally calls TVecInt.StringsToValues