Calling convention: GetLastValOfObject("ObjectName": String, "OrderEntryName": String, OrderEntryCurrentValue: Variant, "RequestedEntryName": String): Variant
Description: Returns an entry value from the preceding record of a named object, ordered relative to an explicitly supplied current value.
Parameters:
ObjectName: object to query.
OrderEntryName: entry used to order records.
OrderEntryCurrentValue: current ordering value used to locate the preceding record.
RequestedEntryName: entry whose value is requested.
Returns: Previous requested-entry value, or NULL when no preceding value is available. Invalid object or entry names raise an error.
Availability: Default.
Example:
PreviousStatus := GetLastValOfObject("Production", "EventTime", EventTime, "Status");