Показать сообщение отдельно
  #11  
Старый 14.08.2010, 16:19
mbv mbv вне форума
Прохожий
 
Регистрация: 28.10.2008
Сообщения: 20
Репутация: 10
По умолчанию

тут http://ifolder.ru/18889097
Код:
unit Unit1;

interface

uses
  Windows, Messages, SysUtils, Variants, Classes, Graphics, Controls, Forms,
  Dialogs, StdCtrls;

type
  TForm1 = class(TForm)
    Button1: TButton;
    Label1: TLabel;
    procedure Button1Click(Sender: TObject);
  private
    { Private declarations }
  public
    { Public declarations }
  end;

var
  Form1: TForm1;
  S: string;

implementation

uses Unit2;

{$R *.dfm}

procedure TForm1.Button1Click(Sender: TObject);
begin
s:='Привет';
   Form2.Show;
   Form2.Label1.Caption:=s;
end;

end.
Код:
unit Unit2;

interface

uses
  Windows, Messages, SysUtils, Variants, Classes, Graphics, Controls, Forms,
  Dialogs, StdCtrls, Buttons;

type
  TForm2 = class(TForm)
    Label1: TLabel;

  private
    { Private declarations }
  public
    { Public declarations }
  end;

var
  Form2: TForm2;

implementation
Uses Unit1;
{$R *.dfm}

end.
сразу бы написал

Все равно спс
Ответить с цитированием