AlarmStorageReader.prvTblAlarmFindTimestamp (METH)ΒΆ

METHOD prvTblAlarmFindTimestamp : STO.ERROR

Searches a row in the table TbAlarm, that matches a given timestamp best. This method must not be called if the database table is empty.

InOut:

Scope

Name

Type

Comment

Return

prvTblAlarmFindTimestamp

STO.ERROR

Input

itfDatabaseAccess

IDatabaseAccess

The instance of IDatabaseAccess, that is used to access the database

liTimstamp

LINT

The absolute timestamp to search for

xUseNextRow

BOOL

This parameter indicates, which row has to be considered if the timestamp cannot be found exactly. Either the next row (TRUE) or the previous row (FALSE)

Output

idRowTimstamp

CAA.IDENT

Returns the row ID of the row corresponding to the given timestamp