Solved

DBLookupListBox weird behavior

Posted on 1997-09-13
2
220 Views
Last Modified: 2010-04-04
I have a DBLookupListBox on a form which is bound to a table.  It shows the 'name' field from that table.  To the right of that DBLookupListBox, I have text boxes that are bound to related fields from the same table as the  DBLookupListBox.  I have it so that by typing a string in
an unbound text box, it does a search on the 'name' field in the underlying table by using the Locate function.  The bound text boxes to the right of the DBLookupListBox update properly when a new record is found.  The DBLookupListBox shows the new record *but*, it doesn't move the highlighted bar to the current record.  It keeps the highlighted bar on
the previous record that it was on even though it is not on that record anymore in the table.  I have tried setting focus, refreshing, and updating the DBLookupListBox in many combinations.  Is this just a bug of sorts of the DBLookupListBox component?
0
Comment
Question by:tdiamond
2 Comments
 
LVL 1

Accepted Solution

by:
anilms earned 50 total points
Comment Utility
What you describe is not a bug at all. It is the way all DB Lookup List Boxes work - whether in Delphi or VB.

Actually, the DB Lookup ListBox is bound to the DataField of the table on which it is acting, not on the table from which it is getting the list of names.
0
 

Author Comment

by:tdiamond
Comment Utility
Is there a way to manually set the highlighted bar at run time?
0

Featured Post

What Security Threats Are You Missing?

Enhance your security with threat intelligence from the web. Get trending threat insights on hackers, exploits, and suspicious IP addresses delivered to your inbox with our free Cyber Daily.

Join & Write a Comment

Introduction The parallel port is a very commonly known port, it was widely used to connect a printer to the PC, if you look at the back of your computer, for those who don't have newer computers, there will be a port with 25 pins and a small print…
Have you ever had your Delphi form/application just hanging while waiting for data to load? This is the article to read if you want to learn some things about adding threads for data loading in the background. First, I'll setup a general applica…
Illustrator's Shape Builder tool will let you combine shapes visually and interactively. This video shows the Mac version, but the tool works the same way in Windows. To follow along with this video, you can draw your own shapes or download the file…
This video shows how to remove a single email address from the Outlook 2010 Auto Suggestion memory. NOTE: For Outlook 2016 and 2013 perform the exact same steps. Open a new email: Click the New email button in Outlook. Start typing the address: …

763 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

13 Experts available now in Live!

Get 1:1 Help Now