Solved

DBLookupListBox weird behavior

Posted on 1997-09-13
2
233 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

The uses clause is one of those things that just tends to grow and grow. Most of the time this is in the main form, as it's from this form that all others are called. If you have a big application (including many forms), the uses clause in the in…
In this tutorial I will show you how to use the Windows Speech API in Delphi. I will only cover basic functions such as text to speech and controlling the speed of the speech. SAPI Installation First you need to install the SAPI type library, th…
Attackers love to prey on accounts that have privileges. Reducing privileged accounts and protecting privileged accounts therefore is paramount. Users, groups, and service accounts need to be protected to help protect the entire Active Directory …
This video shows how to use Hyena, from SystemTools Software, to update 100 user accounts from an external text file. View in 1080p for best video quality.

739 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