Jeremy Coulter wrote:
Hi all. I have not needed to do this in ages, but I have a listview and
I have some numbers in one column, and whenI sort them I want them to
sort in NUMBER order not text order.
Do I have to write a custom sort for this ?
IF so, um...what do I do ;-)

If you haven't solved this already : Use the onCompare event and set the Compare var param to -1,0,1 for item1 less than, equal to or greater than item2.

Cheers, Kurt.

---------------------------------------------------------------------------
New Zealand Delphi Users group - Delphi List - [EMAIL PROTECTED]
Website: http://www.delphi.org.nz
To UnSub, send email to: [EMAIL PROTECTED] with body of "unsubscribe delphi"
Web Archive at: http://www.mail-archive.com/delphi%40delphi.org.nz/

Reply via email to