NoNameCracksInc

Delphi p backup

Jan 8th, 2014
371
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.83 KB | None | 0 0
  1. unit Unit1;
  2.  
  3. interface
  4.  
  5. uses
  6. Windows, Messages, SysUtils, Variants, Classes, Graphics, Controls, Forms,
  7. Dialogs, StdCtrls, ExtCtrls;
  8.  
  9. type
  10. TForm1 = class(TForm)
  11. Button1: TButton;
  12. Image1: TImage;
  13. Button2: TButton;
  14. procedure Button1Click(Sender: TObject);
  15. procedure Button2Click(Sender: TObject);
  16. private
  17. { Private declarations }
  18. public
  19. { Public declarations }
  20. end;
  21.  
  22. var
  23. Form1: TForm1;
  24. a:array[1..10]of integer;
  25. b:integer;
  26. o:integer;
  27.  
  28.  
  29. implementation
  30.  
  31. {$R *.dfm}
  32.  
  33. procedure TForm1.Button1Click(Sender: TObject);
  34.  
  35. begin
  36. randomize;
  37.  
  38.  
  39. for o:=1 to 10 do begin
  40. b:=random(50);
  41. Image1.Canvas.TextOut(10+o*20,10,inttostr(b));
  42. a[o]:=b;
  43. end;
  44.  
  45.  
  46.  
  47.  
  48.  
  49. end;
  50.  
  51. procedure TForm1.Button2Click(Sender: TObject);
  52. begin
  53. Image1.Canvas
  54. end;
  55.  
  56. end.
Advertisement
Add Comment
Please, Sign In to add comment