Yeah. Sorry, wasn't clear about this.
I want to be able to handle an exception if the ImpDestCode is not in the
list.
Mark
----- Original Message -----
From: "Neven MacEwan" <[EMAIL PROTECTED]>
To: "Multiple recipients of list delphi" <[EMAIL PROTECTED]>
Sent: Monday, December 18, 2000 3:25 PM
Subject: Re: [DUG]: Combo Box List Index
> Mark
>
> instead of DocEntryDestCB.ItemIndex :=
> DocEntryDestCB.Items.IndexOf(ImpDestCode);
> for a csDropDown you can
>
> DocEntryDestCB.Text := ImpDestCode;
>
> a csDropDown doesn't enforce existance of the item
>
>
> ----- Original Message -----
> From: Mark Howard <[EMAIL PROTECTED]>
> To: Multiple recipients of list delphi <[EMAIL PROTECTED]>
> Sent: Wednesday, 20 December 2000 09:04
> Subject: [DUG]: Combo Box List Index
>
>
> I posted this yesterday pm but it I feel that I dropped out of the email
> system after that because I received no messages until about 11am today -
> and there was sign of this from DUG and no catch-up volume.
>
> So here it is again.
>
> 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.
>
> Why is this? and is there a way to achieve the same thing - without
chaging
> the style of the TComboBox?
>
> TIA
>
> Mark
>
>
>
> --------------------------------------------------------------------------
-
> 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"