Try if TDirMonitor(DirMonList.Items[Tval]).Directory = CurrDir then Exit; you probably need to cast the object to the correct type.
Dave. -----Original Message----- From: Alistair George [mailto:[EMAIL PROTECTED] Sent: Monday, 31 March 2003 12:27 p.m. To: Multiple recipients of list delphi Subject: Re[2]: [DUG]: Array of components Wow, thanks all for that fine bunch of info. After scanning the internet the info on this subject is not great, so the groups knowledge here has been of very high standard! Any chance of an example of the correct way to use the Tcomponentlist? What I have done is: declare: var DirMonList:Tcomponentlist; create copies of existing component: DirMonList.Add(DirMonitor1); access properties of new list component (does not work): if DirMonList.Items[Tval](DirMonitor1.Directory) = CurrDir then Exit; --------------------------------------------------------------------------- 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/
