Re: [DUG]: ComboBox List Index

2000-12-18 Thread Mike Osborne
>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

Re: [DUG]: ComboBox List Index

2000-12-17 Thread Deepak Shenoy
DestCB.Text := DocEntryDestCB.Items[iIndex]; Deepak Shenoy Agni Software http://www.agnisoft.com - Original Message - From: "Mark Howard" <[EMAIL PROTECTED]> To: "Multiple recipients of list delphi" <[EMAIL PROTECTED]> Sent: Tuesday, December 19, 2000 6:08 AM S

[DUG]: ComboBox List Index

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