BorlandTalk.com Forum Index BorlandTalk.com
Borland discussion newsgroups
 
Archives   FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

DBLookupComboBox question

 
Post new topic   Reply to topic    BorlandTalk.com Forum Index -> Delphi Databases (ADO)
View previous topic :: View next topic  
Author Message
miek
Guest





PostPosted: Thu Feb 10, 2005 3:16 pm    Post subject: DBLookupComboBox question Reply with quote




With a DBLookupComboBox object on a form; the properties
listfield & keyfield properties are pointing to field1.

How does one programically code the DBLookpComboBox object to display this field for any record?

ie. point to a different record, thus changing the value in DBLookupComboBox without using the dropdown.

Thanks

Back to top
Brian Hollister
Guest





PostPosted: Thu Feb 10, 2005 4:25 pm    Post subject: Re: DBLookupComboBox question Reply with quote



hi,

You can assign a value to the KeyValue property.

hth,

brian
--
Got a big event coming up? Let us
help coordinate your event. For more
visit www.kissemgoodbye.com


"miek" <m706102516 (AT) msn (DOT) com> wrote

Quote:

With a DBLookupComboBox object on a form; the properties
listfield & keyfield properties are pointing to field1.

How does one programically code the DBLookpComboBox object to display
this field for any record?

ie. point to a different record, thus changing the value in
DBLookupComboBox without using the dropdown.

Thanks




Back to top
miek
Guest





PostPosted: Thu Feb 10, 2005 6:03 pm    Post subject: Re: DBLookupComboBox question Reply with quote




Thanks that works great, I used:

"DbLookupCB.KeyValue := ADO_Tbl.Fields.Fields[0].AsVariant;"

Miek

"Brian Hollister" <bhollisterATfuturaintlDOTcom> wrote:
Quote:
hi,

You can assign a value to the KeyValue property.

hth,

brian


Back to top
Display posts from previous:   
Post new topic   Reply to topic    BorlandTalk.com Forum Index -> Delphi Databases (ADO) All times are GMT
Page 1 of 1

 
Jump to:  
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


Powered by phpBB © 2001, 2006 phpBB Group
SEO toolkit © 2004-2006 webmedic.