Re: [fpc-pascal] FieldAddress

2015-02-03 Thread Sven Barth
Am 03.02.2015 12:56 schrieb "Torsten Bonde Christiansen" : > So FieldAddress can only access published fields? Correct. For anything else you'll have to wait till we have Delphi's extended RTTI. Regards, Sven ___ fpc-pascal maillist - fpc-pascal@lists

Re: [fpc-pascal] FieldAddress

2015-02-03 Thread Torsten Bonde Christiansen
On 2015-02-03 12:30, silvioprog wrote: On Tue, Feb 3, 2015 at 6:17 AM, Torsten Bonde Christiansen mailto:t...@epidata.info>> wrote: Hi, What does it take for a class to access a field using FieldAddress(...)? I have tried with both typeinfo on/off ({M+}), placing the field

Re: [fpc-pascal] FieldAddress

2015-02-03 Thread silvioprog
On Tue, Feb 3, 2015 at 6:17 AM, Torsten Bonde Christiansen wrote: > Hi, > > What does it take for a class to access a field using FieldAddress(...)? > > I have tried with both typeinfo on/off ({M+}), placing the field in > private/protected/public/published > sections but to no avail. > > My sim

[fpc-pascal] FieldAddress

2015-02-03 Thread Torsten Bonde Christiansen
Hi, What does it take for a class to access a field using FieldAddress(...)? I have tried with both typeinfo on/off ({M+}), placing the field in private/protected/public/published sections but to no avail. My simple code is: TMyObject = class private FRef: TMyObject; procedure SetRef(AVa