Sign in to follow this  
Followers 0
IchBistTod

Sorting data in a list view.

3 posts in this topic

Okay I have a list view that calls of a sqlite database.

One problem. The SQLite database has all the values encrypted so the sort function makes no difference for the order data is returned.

ORDER BY DrugName DESC, LotExpiration DESC, VendingCompany DESC, LotNumber DESC;

I know that we can retrieve data from a list view in two arrays, an array of the number of rows,and an array fo data in each row.

BUT how can I sort this data to replicate the sql sorting shown above?


[center][/center][center]=][u][/u][/center][center][/center]

Share this post


Link to post
Share on other sites



$msg = GUIGetMsg()
Select
Case $msg = $listview

_GUICtrlListView_RegisterSortCallBack($listview)
_GUICtrlListView_SortItems(GUICtrlGetHandle($listview), GUICtrlGetState($listview))
_GUICtrlListView_UnRegisterSortCallBack($listview)

Endselect

Share this post


Link to post
Share on other sites

Thank you.


[center][/center][center]=][u][/u][/center][center][/center]

Share this post


Link to post
Share on other sites

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 account

Sign in

Already have an account? Sign in here.


Sign In Now
Sign in to follow this  
Followers 0