RE: [DUG]: efficient code

2000-04-16 Thread Dennis Chuah
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

Re: [DUG]: efficient code

2000-04-16 Thread Aaron Scott-Boddendijk
> 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

RE: [DUG]: efficient code

2000-04-16 Thread Myles Penlington
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 > >

RE: [DUG]: efficient code

2000-04-16 Thread Paul Heinz
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

RE: [DUG]: efficient code

2000-04-16 Thread Mark Derricutt
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

RE: [DUG]: efficient code

2000-04-16 Thread Stacey Verner
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&#x

[DUG]: efficient code

2000-04-16 Thread james
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