Description: Returns the latest stored values of an entry from an object.
Calling convention: CIP_GetLastValues(ObjectName: String, EntryName: String, EntryCount: Integer): Array
Parameters:
ObjectName: source object name; must not be NULL.
EntryName: source entry name in that object; must not be NULL.
EntryCount: maximum number of latest values requested; must be nonnegative and not NULL.
Returns: A dynamic array of Variant values returned by the object's top-N query. NULL arguments, a negative EntryCount, and unknown objects or entries raise exceptions.
Availability: Default; requires database access through the source object.
Example:
RecentValues := CIP_GetLastValues("Production", "Amount", 10);