Thanks
I think the problem that I am getting is because the component that I am
using is not a pure TComboBox - but a descendant of it, which is introducing
inconsistency in the handling of the list.  I think I will have to control
the Style of the box from time to time programatically.
Mark
----- Original Message -----
From: "Deepak Shenoy" <[EMAIL PROTECTED]>
To: "Multiple recipients of list delphi" <[EMAIL PROTECTED]>
Sent: Monday, December 18, 2000 8:39 PM
Subject: Re: [DUG]: Combo Box List Index


> > Yeah.  Sorry, wasn't clear about this.
> > I want to be able to handle an exception if the ImpDestCode is not in
the
> > list.
>
> if DocEntryDestCB.Items.IndexOf(ImpDestCode) = -1 then
>     raise Exception.Create('Item not in list')
> else
>     DocEntryDestCB.Text := ImpDestCode;
>
> Deepak Shenoy
> Agni Software
> http://www.agnisoft.com
>
> --------------------------------------------------------------------------
-
>     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"
>

---------------------------------------------------------------------------
    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