type
TForm1 = class(TForm)
private
{ Private declarations }
public
{ Public declarations } <-- 글로벌 변수를 선언
end;
var
Form1: TForm1;
implementation
{$R *.DFM}
end.
글로벌만 되는것은 아니지요..
private
... { private declarations here}
protected
... { protected declarations here }
public
... { public declarations here }
published
... { published declarations here }
각각에 대해 선언이 가능합니다.
unit Unit1;
interface
uses
Windows, Messages, SysUtils, Classes, Graphics, Controls, Forms, Dialogs;
type
TForm1 = class(TForm)
private
{ Private declarations }
public
{ Public declarations } <-- 글로벌 변수를 선언
end;
var
Form1: TForm1;
implementation
{$R *.DFM}
end.
글로벌만 되는것은 아니지요..
private
... { private declarations here}
protected
... { protected declarations here }
public
... { public declarations here }
published
... { published declarations here }
각각에 대해 선언이 가능합니다.