Record TCSVReader.TRow

Unit

Declaration

type TRow = record

Description

A single row in the CSV file.

The cells of this row start at index 0.

Enclosing Class

Overview

Methods

Public function ToArray: TStringArray; inline;
Public function ToIntegerArray: TIntegerDynArray; inline;
Public function ToDoubleArray: TDoubleDynArray; inline;

Properties

Public property strings[i:Integer]: String read GetField;
Public property integers[i:Integer]: Integer read GetInt;
Public property doubles[i:Integer]: Double read GetDouble;
Public property Count : Integer read FnumCells;

Description

Methods

Public function ToArray: TStringArray; inline;

Return row as array.

Public function ToIntegerArray: TIntegerDynArray; inline;

Return row as integer array with all cells converted to integer.

Exceptions raised
EConvertError
if a cell is not a valid integer
Public function ToDoubleArray: TDoubleDynArray; inline;

Return row as double array with all cells converted to double.

Exceptions raised
EConvertError
if a cell is not a valid double

Properties

Public property strings[i:Integer]: String read GetField;

Access the i-th cell as a string.

Public property integers[i:Integer]: Integer read GetInt;

Access the i-th cell as an integer.

Exceptions raised
EConvertError
if the cell is not a valid integer
Public property doubles[i:Integer]: Double read GetDouble;

Access the i-th cell as a double.

Exceptions raised
EConvertError
if the cell is not a valid double
Public property Count : Integer read FnumCells;

The number of cells in this row.


Generated by PasDoc 0.15.0.