Delphi-PRAXiS
Seite 2 von 2     12   

Delphi-PRAXiS (https://www.delphipraxis.net/forum.php)
-   Datenbanken (https://www.delphipraxis.net/15-datenbanken/)
-   -   Delphi Autovervollständigung. (https://www.delphipraxis.net/20669-autovervollstaendigung.html)

Akut-Programming 21. Apr 2004 13:33

Re: Autovervollständigung.
 
Mit diesem Code werden alle Einträge eine Spalte in eine normale ComboBox, keine DBComboBox geladen.
Delphi-Quellcode:
Query1.Active:=false;
 Query1.SQL.Clear;
 Query1.SQL.Add('SELECT suchbegriffe from tabelle1 WHERE UPPER (suchbegriffe) LIKE UPPER (''%'+Edit2.Text+'%'')');
 Query1.ExecSQL();
 Query1.Active:=true;

ComboBox1.Items.Clear;
Query1.First;

while Query1.Eof=false
do begin
  ComboBox1.Items.Add(Query1.FieldByName('suchbegriffe').AsString);
  Query1.Next;
end;
Gruß,


Alle Zeitangaben in WEZ +1. Es ist jetzt 22:20 Uhr.
Seite 2 von 2     12   

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
LinkBacks Enabled by vBSEO © 2011, Crawlability, Inc.
Delphi-PRAXiS (c) 2002 - 2023 by Daniel R. Wolf, 2024-2025 by Thomas Breitkreuz