Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Wrong row selected when list box order changes
Message
 
To
All
General information
Forum:
Visual FoxPro
Category:
Forms & Form designer
Title:
Wrong row selected when list box order changes
Miscellaneous
Thread ID:
00303651
Message ID:
00303651
Views:
70
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
Map
View

Click here to load this message in the networking platform