User Tools

Site Tools


appendorder_refine_a_sort_order_.htm
Navigation:  ABC Library Reference > ViewManager > ViewManager Methods >====== AppendOrder (refine a sort order) C6H0009.jpg ====== Previous pageReturn to chapter overviewNext page

AppendOrder( expression list ), VIRTUAL

blk2blue.jpg

AppendOrder Refines the active sort order for the ViewManager object.
expression list A string constant, variable, EQUATE, or expression that contains an ORDER expression list. See the Language Reference for more information.

The AppendOrder method refines or extends the active sort order for the ViewManager object.

The SetSort method sets the active sort order.

Implementation:

The ViewManager implements sort orders with the VIEW's ORDER attribute. The AppendOrder method appends the expression list to the active sort order's expression list. You do not need to prepend a comma or other separator to the expression list. Prepending the expression list with a “*” completely replaces a previously appended sort order.

The ViewManager AddRange method calls the ViewManager PRIVATE SetFreeElement method. The SetFreeElement method completely replaces any previous contents of the ViewManager order property. Therefore, to modify the order of the result set, any AppendOrder statements MUST follow the AddRange statement (if used).

Example:

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

MyView.AppendOrder('CUST:CustName')               !and customer name

See Also:     AddSortOrder , SetSort, AddRange

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