Gary Sutherland
Programmer
I'm trying to get someone else's VFP9 program working. It displays a form containing a ListBox control. This is populated programmatically with information read from a table.
The Moverbar lets the user change the order that the items are displayed in and a command button writes them back to the table.
The problem is that it isn't saving them in the order they're displayed in - but back in the original order.
I've stepped through the save routine and can see that it's looping through each listitem in order and that the data is still held in the ListBox in ListItem number order. So, if the data is displayedbin order 1,2,4,3 it is still held in the list as 1,2,3 4.
I need a way of accessing each item in the ListBox in its displayed order. I can't see any obvious way of doing this.
Any ideas?
The Moverbar lets the user change the order that the items are displayed in and a command button writes them back to the table.
The problem is that it isn't saving them in the order they're displayed in - but back in the original order.
I've stepped through the save routine and can see that it's looping through each listitem in order and that the data is still held in the ListBox in ListItem number order. So, if the data is displayedbin order 1,2,4,3 it is still held in the list as 1,2,3 4.
I need a way of accessing each item in the ListBox in its displayed order. I can't see any obvious way of doing this.
Any ideas?