governs whether a property is read.
Regards,
Dennis.
> -Original Message-
> From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]On
> Behalf Of Mark Derricutt
> Sent: Monday, 17 April 2000 14:32
> To: Multiple recipients of list delphi
> Subject: RE: [DUG]: efficient cod
> Just wondering, for a caption that doesn't change very oftern which in
> more efficient.
>
> StateLabel.caption := 'Running';
>
> OR
>
> IF StateLabel.Caption <> 'Running' then
>StateLabel.Caption := 'Running';
There are 2 sides to this...
1. The cost of the assignment versus the co
TP:[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
> >
Mark wrote:
> 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?
Yes. It's a private (or protected) method
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 fo
nts of list delphi
> Subject: [DUG]: efficient code
>
>
>
> Just wondering, for a caption that doesn't change very oftern which in
> more efficient.
>
> StateLabel.caption := 'Running';
>
> OR
>
> IF StateLabel.Caption <> 'Running
Just wondering, for a caption that doesn't change very oftern which in
more efficient.
StateLabel.caption := 'Running';
OR
IF StateLabel.Caption <> 'Running' then
StateLabel.Caption := 'Running';
This second makes larger code hence larger exe hence more overhead but the
first updates t