Solved

DBLookupListBox weird behavior

Posted on 1997-09-13
2
236 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
2 Comments
 
LVL 1

Accepted Solution

by:
anilms earned 50 total points
ID: 1344765
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
ID: 1344766
Is there a way to manually set the highlighted bar at run time?
0

Featured Post

Free Tool: Site Down Detector

Helpful to verify reports of your own downtime, or to double check a downed website you are trying to access.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

A lot of questions regard threads in Delphi.   One of the more specific questions is how to show progress of the thread.   Updating a progressbar from inside a thread is a mistake. A solution to this would be to send a synchronized message to the…
In my programming career I have only very rarely run into situations where operator overloading would be of any use in my work.  Normally those situations involved math with either overly large numbers (hundreds of thousands of digits or accuracy re…
Come and listen to Percona CEO Peter Zaitsev discuss what’s new in Percona open source software, including Percona Server for MySQL (https://www.percona.com/software/mysql-database/percona-server) and MongoDB (https://www.percona.com/software/mongo-…
This video Micro Tutorial shows how to password-protect PDF files with free software. Many software products can do this, such as Adobe Acrobat (but not Adobe Reader), Nuance PaperPort, and Nuance Power PDF, but they are not free products. This vide…

690 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