Board index » cppbuilder » Unable to add a published __property to my class
XXXX@XXXXX.COM
![]() CBuilder Developer |
Unable to add a published __property to my class2005-04-07 04:15:28 PM cppbuilder26 Hi. I've created a new class through File ->New ->Other ... ->Application. But I'm unable to add a new __property to the published section. class TFrameYearlyItemPage : public TFrameItemPage { typedef TFrameItemPage inherited; __published: // IDE-managed Components __property bool Var = { read=FVar, write=FVar, default=true }; public: // User declarations private: bool FVar; }; When I compile the above, it errors "Error in module YearlyItemPage. Incorrect field declaration in class TFrameYearlyItemPage". Yet when I move the __property Var to the public section, it compiles fine. What am I doing wrong? I'd like to add a published property to my class. Thanks. |