Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chriss Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Incorrect Item Being Returned From a List Box

Status
Not open for further replies.

bebbo

Programmer
Dec 5, 2000
621
GB
I have the following code in the "Click" procedure of a list box.

Do sellitem with Thisformset, TmpVal, mods, thisform, menu_count

This works fine if you don't have to use the Scroll Bar. However should you use the Scroll Bar and pick an item which can not be seen without using the Scroll Bar it appears to jump to the last item shown in normal view. (ie the last item visible in the list box without scrolling down). Has anyone got an idea how to olve this so the item picked is returned???? Thanks.
 
I guess you should use the interactivechange event iso the click event.

HTH,
Weedz (Wietze Veld) They cling emotionally to code and fix development rather than choosing practices based on analytical assesments of what works best. - Steve McConnell
 
THANKS FOR YOUR ADVISE. I've just tried it and unfortunately it does the same. Any other suggestion?
 
I haven't experimented with it, but you might try:
SET CONFIRM ON
--CD.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top