![]() |
In DBComboBox schreiben?
Hallo!
Ist es möglich direkt in eine DBComboBox zu schreiben? |
Re: In DBComboBox schreiben?
Wie genau meinst du das? Natürlich kannst du die Werte per Code setzen.
Bin mir nicht ganz sicher obs der Value-Wert ist. Aber gehen tuts Lange ist es her, das ich noch mit echten DB´s gearbeitet hab und mein Delphi unterstützt das im Moment nicht :-(
Delphi-Quellcode:
DBComboBox.Value := 'Irgendwas'
|
Re: In DBComboBox schreiben?
Hi1
Ich möchte die ComboBox genau wie eine EditFeld benutzen, nur das die Einträge in ihr bestehen bleiben. |
Re: In DBComboBox schreiben?
Vielleicht reicht dir schon das:
Delphi-Quellcode:
Grüße vom marabu
DBComboBox.Style := csDropDown;
|
Re: In DBComboBox schreiben?
Hi!
Die DBComboBox steht schon auf csDropDown. Damit kann ich in die ComboBox schreiben. Der Eintrag wird dann aber nicht automatisch übernommen. :? |
Re: In DBComboBox schreiben?
Zitat:
Initialisiere die DBComboBox.Items im Form.OnCreate() und setze Sorted auf TRUE. Im Dataset.OnAfterPost() pack das rein:
Delphi-Quellcode:
marabu
with DBComboBox do
if Items.IndexOf(Text) = -1 then Items.Add(Text); |
Alle Zeitangaben in WEZ +1. Es ist jetzt 02:45 Uhr. |
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