Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
List Box Problem
Message
General information
Forum:
Visual FoxPro
Category:
Forms & Form designer
Miscellaneous
Thread ID:
00634537
Message ID:
00636253
Views:
20
Hi,

As fas as I know, a requery will place the record pointer to the bottom of the cursor.

Did you try using a for..endfor loop to place the pointer to the proper item in the listbox so that the cursor will also be pointing to the same record?

HTH,
Arriyel

>I have a large listbox about 2000 items.
>
>A left click on a line does some processing and rebuilds the list and requeries it. The cursor is still over the item selected and the item selected is in the same position relative to the top of the box as it was before the selection.
>
>A right click on a line CALLS ANOTHER FORM,does some processing and rebuilds the list and requeries it. The cursor is still over the item selected BUT the item selected is now at the bottom of the box.
>
>The items selected have the same number in the index, so nothing has changed in the List Box order. Both forms are modal.
>
>Anyone any idea how to stop the right click dropping the selection to the bottom of the box?
>
>Colin Northway
Speak using soft and sweet words in case you have to eat them later.
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform