Chris 1/ I put correct in '', which has some meaning 2/ I don't consider 1 post being flamed (more like a small smoulder) 3/ RTTI Solutions only work on published members
RTTI solutions should regarded with great caution, Hey why dont we get Borland to implement property Properties[PropertyName: string]: Variant read GetProperty write SetProperty; default using RTTI then we can all go Form["Colour"] := clRed; And spend the rest of our lives runtime debugging (like VB Programmers do) :-) Neven ----- Original Message ----- From: "Chris Reynolds" <[EMAIL PROTECTED]> To: "Multiple recipients of list delphi" <[EMAIL PROTECTED]> Sent: Thursday, October 24, 2002 8:22 AM Subject: Re: [DUG]: Polymorphic assignment to Color - How? (sometime it's a Property, sometimes not) > > > >The 'correct' way would be to implement an interface > > > >1/ Declare the interface > > > >type > > IPresentation = interface(IInterface) > > procedure SetColor(Value: TColor); > > end > > > > Anyone who uses the word 'correct' deserves to be flamed! Obvoiusly you must have been tired. > > Kyley's solution solved the original iteration problem over a list of objects where you have no control over their declaration. > > my 2c. > > > > > > -------------------------------------------------------------------------- - > 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/