Browse Prior Art Database

Using Listboxes to Sort Data

IP.com Disclosure Number: IPCOM000109753D
Original Publication Date: 1992-Sep-01
Included in the Prior Art Database: 2005-Mar-24
Document File: 1 page(s) / 21K

Publishing Venue

IBM

Related People

Boeving, D: AUTHOR [+3]

Abstract

This article describes a method of sorting a set of character data within a Presentation Manager* (PM) program. The application programmer takes advantage of the sorting logic built into the PM listbox control.

This text was extracted from an ASCII text file.
This is the abbreviated version, containing approximately 100% of the total text.

Using Listboxes to Sort Data

       This article describes a method of sorting a set of
character data within a Presentation Manager* (PM) program.  The
application programmer takes advantage of the sorting logic built
into the PM listbox control.

      An invisible listbox is created during the processing of the
WM_CREATE message.  This listbox is then used to sort text strings.

      To sort data, character strings are inserted into the invisible
listbox using either an ascending or descending sort option.  After
all of the character strings are inserted, a loop is performed to
extract all of the strings, in order, starting at the top of the
listbox.  The net effect is that a set of unsorted strings is placed
into the listbox and a set of sorted strings is extracted from the
listbox.
*  Trademark of IBM Corp.