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 the form which I am guessing would be slow. Does a label
still get updated if the text is being assigned to it's current value?
 
James

---------------------------------------------------------------------------
    New Zealand Delphi Users group - Delphi List - [EMAIL PROTECTED]
                  Website: http://www.delphi.org.nz

Reply via email to