Yep your'e right. 
It can control if the caption will be stored when the component is streamed
out. Hence if/will the property be set when the component is read back in.
It's just a boolean function TRUE = Store the property & vica versa.

Actually the original code example was maybe faster in this case as the
"GetText" function does a bit of work to read the current property value
from the control.
Probably even better to declare "Running" as a const and then compare
against the const.

Myles.


> -----Original Message-----
> From: Mark Derricutt [SMTP:[EMAIL PROTECTED]]
> Sent: Monday, 17 April 2000 14:32
> To:   Multiple recipients of list delphi
> Subject:      RE: [DUG]:  efficient code
> 
> On Mon, 17 Apr 2000, Stacey Verner wrote:
> 
> >     property Caption: TCaption read GetText write SetText stored
> > IsCaptionStored;
> 
> Whats this 'stored' keyword?  I don't think I've seen it before?  Is the
> IsCaptionStored a function?
> 
> -- 
> Mark Derricutt   "People in prayer for me, everyone there for me,
> ICQ: 1934853      sometimes I feel I should face this alone, my
> Wrk: 377-9941     soul exposed... it calm's me to know that I
> Fax: 377-9947     won't!" = Dream Theater - Scarred
> DDI: 375-3754
> 
> Now Playing: Paramaecium - The Birth and the Massacre of the Innocents
> 
> --------------------------------------------------------------------------
> -
>     New Zealand Delphi Users group - Delphi List - [EMAIL PROTECTED]
>                   Website: http://www.delphi.org.nz
---------------------------------------------------------------------------
    New Zealand Delphi Users group - Delphi List - [EMAIL PROTECTED]
                  Website: http://www.delphi.org.nz

Reply via email to