Sign in Join

Live chat for Free Pascal, Lazarus, Delphi and every Pascal programmer.

Mailing lists / fpc-devel / 2012-02

getting error, after publishing property

4 messages · 2 people ·

Reply by email Subscribe to this list Your subscription

Read-only archive. Use j and k to move between messages.

Martin

I have some code, and an error, that I can not explain (fpc 2.4.4 and 2.6)

the base class defines
   public
      property Editor: TCustomSynEdit read GetEditor write SetEditor;

in the inherited class, I can access Editor (of course I can)

but I add
   published
     property Editor: TCustomSynEdit;

in the inherited class
and I get this error:

B:\lazarus_latest\components\synedit\synpluginsyncroedit.pp(1099,53) Error: No member is provided to access property

No Idea why....
(clean compile...)

Reply by email

Sven Barth
to Martin
Martin wrote 20 lines
I have some code, and an error, that I can not explain (fpc 2.4.4 and 2.6) the base class defines public property Editor: TCustomSynEdit read GetEditor write SetEditor; in the inherited class, I can access Editor (of course I can) but I add published property Editor: TCustomSynEdit; in the inherited class and I get this error: B:\lazarus_latest\components\synedit\synpluginsyncroedit.pp(1099,53) Error: No member is provided to access property No Idea why.... (clean compile...)

Don't include the type of the property when increasing the visibility:

published
   property Editor;

This does not seem to be documented in the documentation though... (at least I haven't found it)

Regards,
Sven

Reply by email

Martin
to Sven Barth
Sven Barth wrote 30 lines
Am 17.02.2012 16:15, schrieb Martin: > I have some code, and an error, that I can not explain (fpc 2.4.4 and > 2.6) > > the base class defines > public > property Editor: TCustomSynEdit read GetEditor write SetEditor; > > in the inherited class, I can access Editor (of course I can) > > but I add > published > property Editor: TCustomSynEdit; > > in the inherited class > and I get this error: > > B:\lazarus_latest\components\synedit\synpluginsyncroedit.pp(1099,53) > Error: No member is provided to access property > > No Idea why.... > (clean compile...) Don't include the type of the property when increasing the visibility: published property Editor; This does not seem to be documented in the documentation though... (at least I haven't found it)

Ouch, ouch, ouch ........

Thanks

Reply by email

Sven Barth
to Martin
Martin wrote 33 lines
On 17/02/2012 15:19, Sven Barth wrote: > Am 17.02.2012 16:15, schrieb Martin: >> I have some code, and an error, that I can not explain (fpc 2.4.4 and >> 2.6) >> >> the base class defines >> public >> property Editor: TCustomSynEdit read GetEditor write SetEditor; >> >> in the inherited class, I can access Editor (of course I can) >> >> but I add >> published >> property Editor: TCustomSynEdit; >> >> in the inherited class >> and I get this error: >> >> B:\lazarus_latest\components\synedit\synpluginsyncroedit.pp(1099,53) >> Error: No member is provided to access property >> >> No Idea why.... >> (clean compile...) > > Don't include the type of the property when increasing the visibility: > > published > property Editor; > > This does not seem to be documented in the documentation though... (at > least I haven't found it) Ouch, ouch, ouch ........

There are some days where we don't see the forest because of the trees ;)

Regards,
Sven

Reply by email