 |
BorlandTalk.com Borland discussion newsgroups
|
| View previous topic :: View next topic |
| Author |
Message |
Oliver Young Guest
|
Posted: Mon Nov 24, 2003 3:03 pm Post subject: TDBLookupCombo |
|
|
How can I set value (selected item) from code? I need something like
this:
myDBLookupComboBox.ItemIndex := 3;
or
myDBLookupComboBox.SetSelectedItem(3);
I tried everything, but couldn't find the answer.
Thank you.
|
|
| Back to top |
|
 |
Brian Hollister Guest
|
Posted: Mon Nov 24, 2003 5:22 pm Post subject: Re: TDBLookupCombo |
|
|
try setting the KeyField value
myDBLookupComboBox.KeyField := 3;
"Oliver Young" <none> wrote
| Quote: |
How can I set value (selected item) from code? I need something like
this:
myDBLookupComboBox.ItemIndex := 3;
or
myDBLookupComboBox.SetSelectedItem(3);
I tried everything, but couldn't find the answer.
Thank you.
|
|
|
| Back to top |
|
 |
|
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum
|
|