Subject Re: [IBO] Unbound TIB_LookupCombo
Author Paul Vinkenoog
Hello Dieter,

> we want a ComboBox where the user can select 1 out of the values
> fetched by a query. The result is not to saved in an IB_Column, but
> should be recognized by a event.
>
> At the moment we always fill a TComboBox from the query, but is
> there a faster way?

Since you don't use the data here to fill a field in another dataset
(at least not directly) the fastest way is a TIB_Cursor + TComboBox.

Fetch the data in a loop using APIFirst and APINext and feed them to
the TComboBox.

Should the data change, you must re-run the cursor loop. This is
simple enough if you wrap the loop in a procedure.


Greetings,
Paul Vinkenoog