galvor Posted January 16, 2007 Share Posted January 16, 2007 Hello all, I am trying to sort a 2 column listview by clicking the headers. The first column is the name and the second column is a date The first column sort works great, but the second column sort is sorting the date like it is a text field. Example pre date header sort: ==Name== ==Date (M/D/Y)== Name1 1/4/2005 Name2 2/3/2006 Name3 1/2/2007 Example post date header sort: ==Name== ==Date (M/D/Y)== Name3 1/2/2007 Name1 1/4/2005 Name2 2/3/2006 Is there some way to tell AutoIT that column 2 is a date value when sorting? Is there a way to change the information that a ListView displays while sorting on a different (invisible) value? I am just trying to keep the date field USA end user friendly. Thanks for any help, Galvor Link to comment Share on other sites More sharing options...
Zedna Posted January 16, 2007 Share Posted January 16, 2007 Look at GUICtrlRegisterListViewSort in HelpFile. There is very nice example exactly for your needs Resources UDF ResourcesEx UDF AutoIt Forum Search Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now