Subject Re: IB_ComboBox. Seltext in csDropDownlist not working ? how do I?
Author james_027
When assigning value you should not be assigning it to your component
is should be on the field itself.

for example if your ib_combobox is attact to your color field of your
table ... assigning value into it should be like this ...
table.fieldbyname('color').asstring:=1; (base on your example you are
storing 1 to represent yellow)

hope that helps

--- In IBObjects@yahoogroups.com, "adrian" <wreymed@a...> wrote:
> Dear All
>
> Wish to do auto fillout of a dataform with a speedbutton, and then want
> IB_ComboBox's on the form to filled in with default values that I then
> program.
>
> Eg. Press Speed button
>
> IB_ComboBox7.SelText := 'Yellow" works just fine if Style : csDropDown
>
> If Style csDropDownList, and thus storing an integer value in the
> database eg: yellow = 1
>
> IB_ComboBox7.SelText := 'Yellow' causes no value to be entered.
>
> If I call
> IBComboBox7.ItemIndex := 2; then the correct item is displayed, as if
> selected, but when the data is posted, nothing is posted for that
> field!!!
>


> How do I go about this. There must be a simple solution
>
> Help please ..hours waisted on this already!

I think your ib_combobox isn't setup correctly. Can you show me how do
your ib_combox? I think the problem is in their.
>
> Thanks
>
> Adrian
>
>
>
> [Non-text portions of this message have been removed]