Autor Beitrag
SQLException
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starofftopic star
Beiträge: 89

WinXP + D5 Enterprise
Win2k + D6 Personal
BeitragVerfasst: Mi 15.12.04 12:59 
hi,

wegen problemen mit diesem board (siehe mein thread in wünsche & anregungen o. ä.), fasse ich mich diesmal kurz:

meine access tabelle:

| key | ort
| 123 | frankfurt
| 666 | berlin
| 999 | sonstwas

in meinem DBLookUpComboBox lasse ich den ort erscheinen, habe also zur laufzeit 3 einträge zur auswahl (frankfurt, berlin, sonstwas). wenn ich mir jetzt berlin auswähl, wie komm ich an die 666 ran? ListSource und KeySource habe ich mit "ort" bzw. "key" gefüllt, DataSource ist auch hinterlegt.
LCS
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic star
Beiträge: 1305
Erhaltene Danke: 1

WIN 7, WIN 8
Delphi XE5, Delphi XE, Delphi 2007
BeitragVerfasst: Mi 15.12.04 13:41 
Hi
Über die Eigenschaft KeyValue kommst du an den Schlüsselwert.

Gruss Lothar

_________________
Der BH ist für die Brust, der Plan ist für'n Ar...
SQLException Threadstarter
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starofftopic star
Beiträge: 89

WinXP + D5 Enterprise
Win2k + D6 Personal
BeitragVerfasst: Mi 15.12.04 13:54 
sehr schön. danke.