VBcoders Browse New Submit Contact Sign In

No account? Register free

Forgot password?

A simple ListView Column Sorter (alphanumeric, numeric, date)

VB function enhancement   Visual Basic 3.0   Beginner   Wed 3rd February 2021

A handy module used for sorting a ListView Column (in report view). The column can be sorted alphanumerically, numerically or by date (ascending and descending)

Inputs
ListViewControl As MSComctlLib.ListView ColumnIndex as Integer SortType As Integer SortOrder As Integer

Assumes
The listview date is in the general date format Will allow zero length strings in the sort for all types. Will not allow non-numeric values for sortNumeric (except zero length strings) Will not allow anything other than a date or zero length string for sortDate

Returns
True if executed without error False if executed with error

Rate A simple ListView Column Sorter (alphanumeric, numeric, date) (15(15 Vote))
A simple ListView Column Sorter (alphanumeric, numeric, date).bas

A simple ListView Column Sorter (alphanumeric, numeric, date) Comments

No comments yet — be the first to post one!

Post a Comment

0/1000 characters