Please ensure Javascript is enabled for purposes of website accessibility
Powered by Zoomin Software. For more details please contactZoomin

AVEVA™ Plant SCADA

DevRecNo

  • Last UpdatedJul 18, 2023
  • 1 minute read

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.

The DevRecNo function does not support SQL devices. For these devices -1 is returned.

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.

DevOpen, DevSeek

Example

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

See Also

Device Functions

In This Topic
Related Links
TitleResults for “How to create a CRG?”Also Available in