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

DevFlush

Flushes buffered data to the physical device. CitectSCADA normally optimizes the writing of data for maximum performance, so use this function only if it is really necessary.

Syntax

DevFlush(hDev)

hDev:

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

Return Value

0 (zero) if successful, otherwise an error is returned.

Related Functions

DevOpen, DevClose

Example

! Flush device to disk.
DevFlush(hDev);

See Also

Device Functions