Returns the number of rows of a file previously opened and read with a FileLoad function (FileCSVLoad, FileFixedLoad, FileCSVLoadGlobal or FileFixedLoadGlobal).
Kernel.bdh
FileGetNumRows(in hFile: number): number;
number of rows in the file
Parameter | Description |
---|---|
hFile | Specifies the file handle that is used to access the file |
var hFile, nMaxRows: number; dcltrans transaction TMain begin ... FileFixedLoad(hFile, "login.csv", "1..20;21-40"); nMaxRows := FileGetNumRows(hFile); ... end TMain;