Jump to content

Recommended Posts

Posted

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]

Posted

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

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

Endselect

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
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...