Delphi Pages Forums  

Go Back   Delphi Pages Forums > Delphi Forum > General

Lost Password?

Reply
 
Thread Tools Display Modes
  #1  
Old 05-09-2017, 01:41 PM
larshgf larshgf is offline
Senior Member
 
Join Date: Jan 2001
Posts: 236
Default Combobox question

Hi,

Wonder if it is possible to avoid Combobox1.Text to be automatically updated by the first Combobox1.Item match.
I try to use the combobox1.text field to enter a string to be searched in my ADOQuery. And as I make the input - adding chars to the string one by one - the items in the combobox will show the items found in the database.
If I have these items containing 'abc'

'abcdefg'
'abcdef'
'abcde'

and I input 'abc', then the text field will say 'abcdefg', because it is the first match in the database Thus "disturbing" my searchstring. Changing my searchstring by automatically updating the Combobox1.Text field from the items, unfortunately only show 'abcdefg' and exclude the other two matches ('bcdef' and 'abcde')

Any solution??

BR Lars
Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is On

Forum Jump


All times are GMT. The time now is 03:51 AM.


Powered by vBulletin® Version 3.8.8
Copyright ©2000 - 2017, vBulletin Solutions, Inc.