Thursday, July 16, 2009

GETRANGEMIN, GETRANGEMAX Functions

GETRANGEMIN Function

GETRANGEMIN retrieves the minimum value of the filter range that is currently applied to a field.

GETRANGEMIN has the following syntax.
Record.GETRANGEMIN(Field);

A runtime error occurs if the filter that is currently applied is not a range. For example, you can set a filter as follows.
Customer.SETFILTER("No.",'100002000030000');

With this filter, the following code fails because the filter is not a range.

BottomValue := Customer.GETRANGEMIN("No.");

GETRANGEMAX Function

GETRANGEMAX retrieves the maximum value of the filter range that is currently applied to a field.

GETRANGEMAX has the following syntax.
Value := Record.GETRANGEMAX(Field)

No comments: