FileGetNumRows Function

Action

Returns the number of rows of a file previously opened and read with a FileLoad function (FileCSVLoad, FileFixedLoad, FileCSVLoadGlobal or FileFixedLoadGlobal).

Include file

Kernel.bdh

Syntax

FileGetNumRows(in hFile: number): number;

Return value

number of rows in the file

Parameter Description
hFile Specifies the file handle that is used to access the file

Example

var
  hFile, nMaxRows: number;
dcltrans
  transaction TMain
  begin
    ...
    FileFixedLoad(hFile, "login.csv", "1..20;21-40");
    nMaxRows := FileGetNumRows(hFile);
    ...
  end TMain;