Link Search Menu Expand Document

CSVDocument.SetCells Method

Explanation Update data in multiple columns of a specified row at once.

Added since Ver.4.1.0, Mobile Ver.3.0.0
Call format csvdoc.SetCells( row, column [, data1 [, data2 ... ] ] )
Return value None
Arguments integer row Update row which satrts from row index 0
integer col Column number starting with 0 for the column to start updating.
The update will start from specified col following order data1,data2,...
String data Character string set in cell
Exception CSV-13 Incorrect row index
CSV-14 Incorrect column index
Example of use
    var csvdoc = new CSVDocument;
    csvdoc.Load(robj);
    
    /* Set "a" in the 3rd column of the 2nd row, "b" in the 4th column, and "c" in the 5th column. */
    csvdoc.SetCells(1, 2, "a", "b", "c");
    
Related item GetCells, SetCell methods