Help - me no understand! Run the program, listview loads up with the contents of 'Dates.txt'
Each column is sortable, but if you click first on the 'Year' column, it doesn't sort. It only sorts if you click on any of the other columns first. Must be a simple solution
Brian
PS: Update attached to last post in this thread
Brian,
The date code you sent me yesterday works fine in my editor.
The only difference is you are subclassing the listview control, I removed that as I don't need to do that.
Column 1 for me are line numbers, when I click on it, it sorts correctly.
Just noticed this:
Column 1 sort does not work until you have clicked on another column first.
Once you have done that it works.
So that needs looking at...
Andy.
Brian,
Before the WAITUNTIL statement put this:
SortAscDesc = 1
Works now.
:)
Andy.
Well done, Andy. Sorted!
Brian
Your welcome Brian!
It just needed an initial value to begin with.
Anyway, thanks, and it's sorted now.
Andy.
Updated and reposted here with additional calendar icon for you to use
Brian