Link Search Menu Expand Document

CSVDocument.GetCellByName Method

Explanation To retrieve data from cell, specify the index number of row and column.

To set the column name, use SetColumnName method or CSVConstant.

Added since Ver.4.1.2, Mobile Ver.3.0.0
Call format var data = csvdoc.GetCellByName( row, columnName > )
Return value Character string of the acquired cell
If the corresponding cell does not exist, null is returned.
Arguments integer row Get row which index row start from 0
String columnName Get name of column
Exception CSV-13 Incorrect row index
CSV-14 Incorrect column index
Example of use
    var csvdoc = new CSVDocument;
    csvdoc.Get("/test/sample.csv");
    csvdoc.SetColumnName(2, "Type");
    var cell = csvdoc.GetCellByName(0, "Type");
    print(cell, "\n");
    
Related item SetCellByName, GetCell, GetColumnName, SetColumnName methods