Unit 'csvreadwrite' Package
[Overview][Types][Classes][Procedures and functions][Index] [#fcl]

TCSVParser.ParseNextCell

Parse the next cell.

Declaration

Source position: csvreadwrite.pp line 149

public function TCSVParser.ParseNextCell: Boolean;

Function result

True if a cell was read, False if no more CSV data is available.

Description

ParseNextCell attempts to read the next field in the CSV data, moving to the next row if necessary. It returns True if a cell was read successfully, False if no more CSV data is available - when the stream has reached EOF. It takes into account the Delimiter, QuoteChar and LineEnding properties to determine the field boundaries. When it has returned True, the properties CurrentRow, CurrentCol, MaxColCount and CurrentCellText can be used to determine what field was read and what the contents of the field were.

See also

CurrentRow

  

Row (zero based) of the current field.

CurrentCol

  

Column (zero based) of the current field.

MaxColCount

  

Return the maximum column count encountered till now.

CurrentCellText

  

Current field value.

Delimiter

  

Field delimiter character.

QuoteChar

  

Character to quote values.

LineEnding

  

Line ending character.


Documentation generated on: Dec 22 2024