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>
|