A simple yes/no question.

Should I cast an object to it's defined type before I Free it?
ie. MyObject(ListBox.Items.Objects[0]).Free
   or simply ListBox.Items.Objects[0].Free will do?

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/

Reply via email to