Which of the following statements execuates faster if the button is
already enabled?
1. OKButton.Enabled := True;
2. if OKButton.Enabled = False then OKButton.Enabled := True;

If the answer is 2, does anyone bother doing it that way?

Also, if I'm enabling the button in numerous procedures, is it
better/faster to execute a procedure with just the one line in it?

Cheers,
Ross.


---------------------------------------------------------------------------
    New Zealand Delphi Users group - Delphi List - [EMAIL PROTECTED]
                  Website: http://www.delphi.org.nz
To UnSub, send email to: [EMAIL PROTECTED] 
with body of "unsubscribe delphi"
Web Archive at: http://www.mail-archive.com/delphi%40delphi.org.nz/

Reply via email to