John Barrat wrote: > Can anyone advise me how to set up a Property which is an array of Record > Types. > > Here is a skeleton of my class code - the compiler does not like my use of > Records in a Property Array
The problem is that you have the array property published, which makes it available at design time. There is no RTTI system for handling records so that won't work. You can have an array property of records that's NOT published if you aren't looking to view them at design time. If you are planning to expose these values at design time, the alternative is to use the collections mechanism and make your "records" into classes instead. BTW, as-is if you move your pMacInfo property declaration into the public section you'll get a confusing "Incompatible Types" error. This actually refers to the fact that you've got AIndex declared as CONST in the property declaration but not in the get accessor method GetMacInfo(). It needs to be the same in both places (either both CONST or both non-CONST). Stephen Posey [EMAIL PROTECTED] _______________________________________________ Delphi mailing list -> [email protected] http://www.elists.org/mailman/listinfo/delphi

