User Tools

Site Tools


applyrange_conditionally_range_limit_and_filter_the_result_set_.htm
Navigation:  ABC Library Reference > ViewManager > ViewManager Methods >====== ApplyRange (conditionally range limit and filter the result set) C6H0009.jpg ====== Previous pageReturn to chapter overviewNext page

ApplyRange, VIRTUAL, PROC

blk2blue.jpg

The ApplyRange method applies the range limits and calls the ApplyFilter method if the range limits have changed. The ApplyRange method returns a value indicating whether or not a change occurred. A return value of one (1 or True) indicates a change; a return value of zero (0 or False) indicates no change.

The AddRange method specifies the range limits for the ViewManager object. The SetSort method sets the active sort order.

Implementation:

The ApplyRange method applies range limits and filters with the ApplyFilter method.

Return Data Type:     BYTE

Example:

MyView.AddSortOrder(ORD:ByCustomer)                       !sort by customer no

MyView.AddRange(ORD:CustNo,Relate:Orders,Relate:Customer) !range limit by parent file

!program code

MyView.ApplyRange                                         !apply the range limit

MyView.Next()                                             !get next, subject to range

See Also:     SetSort ,AddRange, ApplyFilter

applyrange_conditionally_range_limit_and_filter_the_result_set_.htm.txt · Last modified: 2021/04/15 15:56 by 127.0.0.1