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