Link Search Menu Expand Document

CSVDocument.Merge Method

Explanation Merge two CSV data.
The number of columns in the two merged CSV data will be adjusted to the larger one.

Added since Ver.4.1.0. Same functionality as in previous versions of marge.
Call format var csvdoc3 = csvdoc2.Merge( csvdoc )
Return value New CSVDocument object combined from two CSVDocument
Arguments CSVDocument csvdoc CSVDocument object to be combined
Exception CSV-15 The argument is not valid CSVDocument object
Example of use
    var csvdoc1 = new CSVDocument;
    var csvdoc2 = new CSVDocument;
    csvdoc1.Get("http://server/data1.csv");
    csvdoc2.Get("http://server/data2.csv");
    var csvdoc3 = csvdoc1.Merge(csvdoc2);
    csvdoc3.Save(file);
    
Related item Splice method