Курсовая работа: Программа игры Кости
Shift: TShiftState; X, Y: Integer);
var
name: string;
begin
Image3. Visible: =false;
name: =Edit1. Text;
if ( (name = '') or (name = ' ')) then
begin
ShowMessage ('Введите имя ');
end
else
begin
Form2. Show;
Form1. Hide;
Form2. Label1. Caption: =name;
end;
end;
end.
Form3
unit Unit3;
interface
uses
Windows, Messages, SysUtils, Variants, Classes, Graphics, Controls, Forms,
Dialogs, StdCtrls, jpeg, ExtCtrls;
type
TForm3 = class (TForm)
Image2: TImage;
Button1: TButton;
Button2: TButton;