Link Search Menu Expand Document

CSVDocument.Truncate Method

Explanation Delete multiple rows at once. The column is maintained.
Call format csvdoc.Truncate( [ row ] )
Return value None
Arguments integer row Line number starting with 0 on the line that starts the deletion.
The rows after the specified row will be deleted. If omitted, all lines will be deleted.
Added since Ver.4.1.3, Mobile Ver.3.0.0
Exception CSV-13 Incorrect row index.
Example of use
    var csvdoc = new CSVDocument;
    var res = session.Get("/test/sample.csv");
    csvdoc.Load(res);
    csvdoc.Truncate(5);
    
Related item Clear method