tips
[Top] [All Lists]

Sorting data in a single column listbox

To: "REALbasic Tips" <realbasic-tips at lists dot realsoftware dot com>
Subject: Sorting data in a single column listbox
From: Geoff Perlman <geoff at realsoftware dot com>
Date: Mon, 28 Aug 2000 12:11:47 -0500
Here's a fast and easy way to sort values in a single column listbox. The listbox HeadingIndex property lets you get and set which column is used for sorting the data in the listbox. You might think this would only work with
multicolumn listboxes that have headings. In fact, it works with single
column listboxes that have NO headings at all.

To sort the data in a single column listbox, just set the headingIndex
property of the listbox to zero as in this example:

Listbox1.HeadingIndex = 0
--

Geoff Perlman
President & CEO
REAL Software, Inc.
http://www.realsoftware.com
mailto:geoff at realsoftware dot com
Phone: 512-263-1233 x711
Fax:   512-263-1441



 - - - - - - - - - -
Got a useful tip to share? Send it to us at:
REALbasic-tips at lists dot realsoftware dot com dot
For list commands, send "Help" in the body of a message to
<requests at lists dot realsoftware dot com>



<Prev in Thread] Current Thread [Next in Thread>
  • Sorting data in a single column listbox, Geoff Perlman <=