General information
Category:
Forms & Form designer
Title:
Wrong row selected when list box order changes
Version : VFP 5.0a
O/S : 95/NT
I am working on a project in which a list box has two columns. One column contains a salesrep id, the other the rep's name. Below the list box are two command buttons. Clicking one enables the user to sort the list box by rep id, the other by rep name.
The problem I am having is with the selected row of the list box. If the user has selected a rep, then clicks to change the order, I want the current selected rep to remain selected. Instead, the current row in relation to the top of the box continues to be highlit. For instance, "Joe Bloggs" is the third rep from the top. If I select this and change the order, "Joe Bloggs" will appear in say, the fifth row from the top, but the third row remains highlit.
I have tried manipulating list indexes and item id's and I am now blue in the face. Can anyone help me?
Many thanks,
Nanci
Next
Reply
View the map of this thread
View the map of this thread starting from this message only
View all messages of this thread
View all messages of this thread starting from this message only