Cicode Programming Reference > Cicode Function Categories > Device Functions > DevFirst

DevFirst

Finds the first record in a device.

For SQL devices, this function is a blocking Cicode function.

Syntax

DevFirst(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 first indexed record (if the device is an indexed database), otherwise the first record in the device.

Related Functions

DevOpen, DevClose

Example

! Find the first record.
FirstRec = DevFirst(hDev);

See Also

Device Functions

Published June 2018