DBLookupListBox weird behavior 
Author Message
 DBLookupListBox weird behavior

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 in many combinations.  Is this just a bug of sorts of the
DBLookupListBox component?  Any ideas would be greatly appreciated.



Wed, 18 Jun 1902 08:00:00 GMT  
 DBLookupListBox weird behavior

You can try the command:
listboxname.keyvalue := rightsidetextbox.text;
If the text in the rightside textbox is indentical to the line in your
listbox the above command will make that line the selected one.


Quote:

> 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 in many combinations.  Is this just a bug of sorts of the
> DBLookupListBox component?  Any ideas would be greatly appreciated.



Wed, 18 Jun 1902 08:00:00 GMT  
 
 [ 2 post ] 

 Relevant Pages 

1. Weird DB Posting Behavior

2. Weird behavior of Turbo Debugger

3. BP7.0 Bug/Weird Behavior/Redux

4. Need Help, Weird behavior with Win4Wrkgrps and TPW 1.5

5. Weird behavior in BDE database next record reading / eof.

6. How can I sort a DBLookuplistbox???

7. Begin or End of table error using DBlookuplistbox component

8. OnDblClick in DBLookupListBox

9. Focus in DBLookupListBox?

10. Items count for a DBlookuplistbox?

11. DBLookUpListBox bug???

12. Changing display width in DBLookupListBox

 

 
Powered by phpBB® Forum Software