Thanks for that Kurt. The only problem I NOW have is, I want to click on the col header and make it sort the other way. How do I do that?
Thanks, Jeremy -----Original Message----- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Kurt at DBC Sent: Saturday, 18 October 2003 15:44 To: Multiple recipients of list delphi Subject: Re: [DUG]: Listview Sort 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/ --------------------------------------------------------------------------- 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/
