RAD Studio
ContentsIndex
PreviousUpNext
E2004: Only read or write clause allowed in property declaration in __automated section

Storage specifiers stored, default, and nodefault are not allowed in property declarations in __automated sections. 

 

struct__declspec(delphiclass) clxclass
{
int __fastcall Get(void);
__automated:
int __property ip1 = { read = Get };      // OK
int __property ip2 = { read = Get, default = 42 }; // Error
};
Copyright(C) 2008 CodeGear(TM). All Rights Reserved.
What do you think about this topic? Send feedback!