BorlandTalk.com Forum Index BorlandTalk.com
Borland discussion newsgroups
 
Archives   FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

__property question

 
Post new topic   Reply to topic    BorlandTalk.com Forum Index -> C++ Builder (Language)
View previous topic :: View next topic  
Author Message
Jungle Boy
Guest





PostPosted: Wed Jun 07, 2006 7:41 pm    Post subject: __property question Reply with quote



The __property syntax in BCB goes something like this:

class ...
{
private:
<type[*]> FName;
__published:
__property <type[*]> Name = {read=FName[, write=SetName[, default=constant|nodefault[,
stored=boolean]]]};
};

where:
[...] means optional
type is either a defined type such as 'int' or a structure or class
constant is an optional number
boolean is true or false

The question is, what does the 'stored' thing do ?


I've dropped a TChart onto a form and I'm getting 'Identifier expected' when compiling.
The error is in TeEngine.hpp class TChartSeries section __published:
Here's the line it fails on.
__property TCustomAxisPanel* ParentChart = {read=FParent, write=SetParentChart, stored=false};

When I comment out the /*,stored=false*/ the error goes away.

The compiler used is BCB4 with updates 1 and 2 applied.

TIA Jungle Boy
Back to top
Display posts from previous:   
Post new topic   Reply to topic    BorlandTalk.com Forum Index -> C++ Builder (Language) All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2006 phpBB Group
SEO toolkit © 2004-2006 webmedic.