ListView Column Sorting (Advanced)

Category:
Forms and Controls
Type:
Modules
Difficulty:
Advanced

Author: Richard Deeming

Version Compatibility: Visual Basic 5

More information:
The standard ListView.Sort routines work fine for text, but fall-down when you try to use them with numbers (5 comes after 15) and dates (5/5/1900 comes after 1/1/2000). These API routines will overcome this with a custom call-back sorting routine.

(From FreeVBCode.com) Good learning example for using callbacks via the AddressOf operator.


Instructions: Click the link below to download the code. Select 'Save' from the IE popup dialog. Once downloaded, open the .zip file from your local drive using WinZip or a comparable program to view the contents.

Download lvwsort.zip