Hi Ross
I tried your code and it works for me. Are you doing anything else in
CategoryListClick, in the previous line perhaps? I would set a breakpoint on
the line and see what happens.
Wayne
-----Original Message-----
From: Ross Levis [mailto:[EMAIL PROTECTED]]
Sent: Thursday, 12 July 2001 11:00
To: Multiple recipients of list delphi
Subject: [DUG]: What could be wrong with this?
procedure TCategoriesForm.CategoryListClick(Sender: TObject);
var
item : integer;
begin
item := CategoryList.itemindex; {CategoryList is a listbox with 2
items in it}
At runtine, when clicking on an item in the Listbox, the above line
produces an exception EConvertError 'is not a valid integer value'.
Can someone shed some light please.
Cheers,
Ross.
---------------------------------------------------------------------------
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"
Web Archive at: http://www.mail-archive.com/delphi%40delphi.org.nz/
---------------------------------------------------------------------------
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"
Web Archive at: http://www.mail-archive.com/delphi%40delphi.org.nz/