Description: Returns the maximum value of an entry, taking an unsaved value from the matching active DBForm into account.
Calling convention: CIP_GetMaxValue("ObjectName": String, "EntryName": String): Variant
Parameters:
ObjectName: registered object name.
EntryName: entry whose maximum is required.
Returns: Maximum value as Variant. When the active unsaved value and database aggregate are both NULL, the result is NULL; when only one is NULL, the other value is returned. Invalid objects or entries and incomparable non-NULL values raise an exception.
Availability: Default; reads object data and may also inspect the active DBForm.
Example:
HighestValue := CIP_GetMaxValue("Production", "Quantity");