Delphiでアクションゲームが作りたい!!
■ このスレッドは過去ログ倉庫に格納されています
01571 ◆lo8YkeSw
NGNGinterface
uses
Windows, Messages, SysUtils, Variants, Classes, Graphics, Controls, Forms,
Dialogs, StdCtrls;
type
TForm1 = class(TForm)
Button1: TButton;
Label1: TLabel;
Label2: TLabel;
procedure Button1Click(Sender: TObject);
private
{ Private 宣言 }
public
{ Public 宣言 }
end;
type
TDateRec = record
Year: Integer;
Day: 1..31;
end;
var
Form1: TForm1;var Record1, Record2: TDateRec;
implementation
{$R *.dfm}
procedure TForm1.Button1Click(Sender: TObject);
begin
with Record1 do
begin
Year := 1904;
Day := 16;
label1.Caption := inttostr(year);
label2.Caption := inttostr(day);
end;
end;
end.
■ このスレッドは過去ログ倉庫に格納されています