Thanks for all you inputs - typecasting was the solution, however, I am not sure how useful it is keeping them all in Tcomponent. I think Brendans suggestion of creating them in arrays could be simpler and provide more flexibility.
JohnB -----Original Message----- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Jeremy North Sent: 16 February 2007 00:49 To: Borland's Delphi Discussion List Subject: Re: Help needed Using TComponentList Hi John, > Now how do I access the properties of the component I have just added? You need to type cast to the type of the component you added or one that declares the properties you want to access publicly. var lComp: TMarcoCombo; begin ... lComp := TMacroCombo(mCommands[index]); lComp.align := alLeft; lComp.ItemIndex := 0; ... end; cheers, Jeremy _______________________________________________ Delphi mailing list -> [email protected] http://www.elists.org/mailman/listinfo/delphi _______________________________________________ Delphi mailing list -> [email protected] http://www.elists.org/mailman/listinfo/delphi

