Subject Re: [IBO] Questions about TIB_LookupCombo
Author Alfred Seetoh
Thanks so much... will try it out.

--- In, Paul Vinkenoog <paul@v...> wrote:
> Hi Alfred,
> > I have 2 qn regarding TIB_LookupCombo:
> >
> > 1. The DataSource property specifies the lookup source. So where
> > I specify the datasource that the data should be written to?
> You don't do that from the TIB_LookupCombo. You set up two datasets
> a KeySource-Lookup pair; then you set the DataSource of the Combo to
> the Lookup set, and everything works automagically. If you have the
> Getting Started Guide, there's a detailed description of how to do
> this.
> > 2. I would like to type into the lookup combo, and it will locate
> > the record (partialkey) accordingly. What property should I set
> > in order to achieve that?
> First make sure there's an explicit OrderingItem in effect for the
> lookup set ("ORDER BY" in the default SQL is not enough -
> OrderingItemNo must not be 0).
> Then set the LookupCombo's SearchKeyByKey property to true (and
> optionally SeekNearest too).
> Greetings,
> Paul Vinkenoog