Calling convention: GetNextVal("OrderByEntryName": String, "ValueEntryName": String, [DefaultValue: Variant]): Variant
Description: Returns the requested entry value from the following record of the current object, ordered relative to the current record's value of another entry.
Parameters:
OrderByEntryName: entry used to order records.
ValueEntryName: entry whose following value is requested.
DefaultValue: optional fallback when no following value exists.
Returns: Next entry value or the optional default. In the desktop application, when neither exists, the current implementation can retain the current entry's original value rather than returning NULL. Date/time and duration values may be rounded to seconds according to the global setting.
Availability: Default; requires a visible current DB form and an entry calculation context.
Example:
NextValue := GetNextVal("EventTime", "Status", "Unknown");