Advertisement
TLama

Untitled

Oct 4th, 2013
255
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Delphi 0.79 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;
  8.  
  9. type
  10.   TfrmHillSlopeRegr = class(TForm)
  11.   private
  12.     procedure mmuFileOpenClick(Sender: TObject);
  13.   public
  14.     { Public declarations }
  15.   end;
  16.  
  17. var
  18.   frmHillSlopeRegr: TfrmHillSlopeRegr;
  19.   // to make the OutputFile variable be visible out of scope of this unit,
  20.   // declare it in the interface section
  21.   OutputFile: TStringList;
  22.  
  23. implementation
  24.  
  25. {$R *.dfm}
  26.  
  27. uses
  28.   AnalysisOptions;
  29.  
  30. procedure TfrmHillSlopeRegr.mmuFileOpenClick(Sender: TObject);
  31. begin
  32.   // whatever code here
  33. end;
  34.  
  35. // these must be at the end of the unit not enclosed by begin..end blocks
  36. initialization
  37.   OutputFile := TStringList.Create;
  38. finalization
  39.   OutPutFile.Free;
  40.  
  41. end.
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement