Link Search Menu Expand Document

CSVDocument.SetCellByName Method

Explanation Specify the row and column, and the data in the cell will be set.

Set the column name using SetColumnName method and CSVConstant.

Added since Ver.4.1.2, Mobile Ver.3.0.0
Call format csvdoc.SetCell( row, column, text )
Return value None
Arguments integer row Specify row start from row index 0
integer column Set name of column
String text Character string set in cell
Exception CSV-13 Incorrect row index
CSV-14 Incorrect column index
Example of use
    var csvdoc = new CSVDocument;
    csvdoc.InsertColumn(0);
    csvdoc.InsertRow(0);
    csvdoc.SetColumnName(0, "Data");
    csvdoc.SetCellByName(0, "Data", "sample");
    
Related item GetCellByName, SetCell, GetColumnName, SetColumnName methods