Re: [DUG]: Combo Box List Index

2000-12-19 Thread Mark Howard
- 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

[DUG]: Combo Box List Index

2000-12-18 Thread Mark Howard
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

Re: [DUG]: Combo Box List Index

2000-12-18 Thread Neven MacEwan
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

Re: [DUG]: Combo Box List Index

2000-12-18 Thread Mark Howard
ber 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

Re: [DUG]: Combo Box List Index

2000-12-18 Thread Deepak Shenoy
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