Solved

DBLookupListBox weird behavior

Posted on 1997-09-13
2
227 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
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…
Objective: - This article will help user in how to convert their numeric value become words. How to use 1. You can copy this code in your Unit as function 2. than you can perform your function by type this code The Code   (CODE) The Im…

839 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