You are here: Development Standards > Routines > General Routines > GENSORT2.PUB

# GENSORT2.PUB

GENSORT2.PUB is a public program that accepts a list of data, displays the data in a box, then prompts the user to select one of the specific options. This routine is used primarily for selecting alternate sort methods for several functions, including Sales Order and Purchase Order Order Inquiry, where the main HLE display can be sorted in several different ways.

`0050 ENTER SORT$[ALL],SORT,SORTNUM,OSGUI$`

Variable | Descriptions
SORT$[ALL] | Sorts to be displayed as prompts
SORT | Sort number that user selects
SORTNUM | Number of sorts defined within SORT$[ALL]
OSGUI$ | GUI template (see GENGURES.PUB on page 3-50 for more details)

Exit Points | Explanation
EXIT | GENSORT.PUB does not return any errors.