ApplyOrder (sort the result set)

Top  Previous  Next

 

ApplyOrder, VIRTUAL

The ApplyOrder method applies the active sort order to the managed VIEW. The order applies starting with the next read from the VIEW.

The AddSortOrder method sets the available sort orders.The SetSort method sets the active sort order.

Implementation:

The ViewManager implements sort orders with the VIEW's ORDER attribute. See the Language Reference for more information.

Example:

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

!program code

MyView.ApplyOrder                   !apply the order

MyView.Next()                       !get next in specified order

See Also:     AddSortOrder, SetSort