Hi everybody!
I’m wondering if anyone had similar problem?
I have a listbox with 4 columns, which is refreshed by a query. Every column has a corresponding button, which can change the order of that column. The problem is every time I change the order of any column I loose the rows I selected before because they become unselected.
I know the SELECTED(“row_index”) property to select particular row and I could extract the item’s data of the items I selected using ITEMDATA(“row_index”) and the loop function.
Example:
‘this is data from one of the columns I selected before changing the order of the listbox
strList = 123,134,323
I press the button and REQUERY the listbox, so all items unselected. Now I would like to see those items selected again.
So, how to get row_indexs of these items (123,134,323) and then I would use SELECTED property to reselect them again.
Thanks in advance
I’m wondering if anyone had similar problem?
I have a listbox with 4 columns, which is refreshed by a query. Every column has a corresponding button, which can change the order of that column. The problem is every time I change the order of any column I loose the rows I selected before because they become unselected.
I know the SELECTED(“row_index”) property to select particular row and I could extract the item’s data of the items I selected using ITEMDATA(“row_index”) and the loop function.
Example:
‘this is data from one of the columns I selected before changing the order of the listbox
strList = 123,134,323
I press the button and REQUERY the listbox, so all items unselected. Now I would like to see those items selected again.
So, how to get row_indexs of these items (123,134,323) and then I would use SELECTED property to reselect them again.
Thanks in advance