Jump to content
ari173

TreeView Sort dont work proper

Recommended Posts

Hi Community,

I use autoit for a very long time and I am very impressed about it.

Now, for the first time, I cant find a solution and cant resolve this problem by my self.

I load "Location Information" about Clients from .conf files (in my example I create an Array with testdata to Show the Problem).

The Client files are sorted alphabetically, so the "Location Info" ist collected randomly.

The TreeView is used to collect clients in the same Location together, without duplicate location entries.

But the sort function result is not what i expect.

Hope someone can help. Thank you.

upload.au3

Share this post


Link to post
Share on other sites

Agree with you.  Use instead :

 

Tested with your data, works perfect.  Place those 3 lines at start of your script (before TreeView creation).

Global $aSortData[][] = [[0,0],[1, 0],[2, 0],[3, 0],[4, 0]]
_ArrayMultiColSort($aClient, $aSortData)
$aClient[0][0] = 5

and remove _GUICtrlTreeView_Sort ($hTreeview).  Set the number base-0 after sort.

Edited by Nine

Share this post


Link to post
Share on other sites

Thank you very much for your response.

After some additional modifications in my Code it works for my Project too.

great Job. 

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

  • Recently Browsing   0 members

    No registered users viewing this page.

×
×
  • Create New...