home *** CD-ROM | disk | FTP | other *** search
/ Delphi Magazine Collection 2001 / Delphi Magazine Collection 20001 (2001).iso / DISKS / Issue39 / smarter / Project1 / unit1.pas < prev   
Encoding:
Pascal/Delphi Source File  |  1998-01-29  |  632 b   |  39 lines

  1. unit Unit1;
  2.  
  3. interface
  4.  
  5. uses
  6.   Windows, Messages, SysUtils, Classes, Graphics, Controls, Forms, Dialogs,
  7.   StdCtrls;
  8.  
  9. type
  10.   TForm1 = class(TForm)
  11.     Button1: TButton;
  12.     procedure Button1Click(Sender: TObject);
  13.   private
  14.     { Private declarations }
  15.   public
  16.     { Public declarations }
  17.   end;
  18.  
  19. var
  20.   Form1: TForm1;
  21.  
  22. implementation
  23.  
  24. {$R *.DFM}
  25.  
  26. procedure TForm1.Button1Click(Sender: TObject);
  27. var
  28.     i: Integer;
  29. begin
  30.     // Commented Text
  31.     For i := 1 to 15 do begin
  32.         Button1.Caption := 'The fast number is ''' + IntToStr(i) + '''';
  33.         Sleep(500);
  34.         Application.ProcessMessages;
  35.     end;
  36. end;
  37.  
  38. end.
  39.