Cicode Programming Reference > Cicode Function Categories > Device Functions Introduction > DevRecNo

DevRecNo

Gets the current record number of a device. If the device is record-based, the record number ranges from 1 to the maximum size of the file. If the device is free-format, the record number ranges from 0 to the maximum byte size -1.

Syntax

DevRecNo(hDev)

hDev:

The device handle, returned from the DevOpen() function. The device handle identifies the table where all data on the associated device is stored.

Return Value

The record number. If an error is detected while getting the record number, -1 is returned.

Related Functions

DevOpen, DevSeek

Example

! Get the current record number.
Rec=DevRecNo(hDev);

See Also

Device Functions