>Hi all
>
>With a TComboBox Style set at csDropDownList you can do:
>
>              DocEntryDestCB.ItemIndex :=
DocEntryDestCB.Items.IndexOf(ImpDestCode);
>
>With the Style set at csDropDown, you can't.

Is this in:
* it doesn't compile
* it crashes
* it returns wrong result

I am interested as I have no problem doing the above.
Are you sure ImpDestCode has the value you expect when style is set to
csDropDown?

>
>Why is this? and is there a way to achieve the same thing - without chaging
the style of the TComboBox?

In my experience it should work OK as is.



---------------------------------------------------------------------------
    New Zealand Delphi Users group - Delphi List - [EMAIL PROTECTED]
                  Website: http://www.delphi.org.nz
To UnSub, send email to: [EMAIL PROTECTED] 
with body of "unsubscribe delphi"

Reply via email to