Description: Returns the timestamp of the newest database message on a selected connection.
Calling convention: CIP_GetLatestDBMessageDate(ConnectiondefName: String): Float
Parameters:
ConnectiondefName: connection-definition name; NULL or an empty String selects the current database connection.
Returns: Latest DB_MESSAGE_TIME as a Delphi TDateTime Float, or 0 when the message table is empty. An unknown connection displays an error, but the current implementation may then continue unsafely.
Availability: Default; the query uses SQL Server TOP syntax and requires access to OEE_DB_MESSAGE.
Example:
LastMessageAt := CIP_GetLatestDBMessageDate("CentralDB");