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

AVEVA™ Plant SCADA

DevSize

  • Last UpdatedJul 18, 2023
  • 1 minute read

Gets the size of a physical device.

The DevSize function does not support SQL devices. For these devices -1 will be returned.

Syntax

DevSize(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

If the device is a database device, the number of records is returned. If the device is a binary device, the number of bytes in the file is returned. If an error is detected, -1 is returned.

DevRecNo, DevSeek

Example

INT NoRec;
NoRec=DevSize(hDev);
! Seek to the last record.
DevSeek(hDev,NoRec);

See Also

Device Functions

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