For a start, you're trying to cast the TComponent.Name property of Owner.Components[i] to a TCheckListBox. The Name property, not surprisingly, is a string. ;-)
I suspect that's your compile error. In the lines above your compiler error, is there a particular reason why you can't just check the type of the component, rather than testing to see if it's classname is TCheckListBox? HTH, Conor -----Original Message----- From: Alistair George [mailto:[EMAIL PROTECTED] [snip] with Owner.Components[i].Name as Tchecklistbox do //Throws a compile error [snip] _______________________________________________ Delphi mailing list [EMAIL PROTECTED] http://ns3.123.co.nz/mailman/listinfo/delphi
