Ответы
Ответ дал:
1
unit Unit1;
{$mode objfpc}{$H+}
interface
uses
Classes, SysUtils, FileUtil, Forms, Controls, Graphics, Dialogs, StdCtrls;
{$mode objfpc}{$H+}
interface
uses
Classes, SysUtils, FileUtil, Forms, Controls, Graphics, Dialogs, StdCtrls;
Form1: TForm1;
implementation
{$R *.lfm}
{ TForm1 }
procedure TForm1.Button1Click(Sender: TObject);
var a,b,x: string;
begin
a:= Edit1.Text;
b:= Edit3.Text;
begin
Label1.Caption:='nemae';
else
if a:=0 and b:=0 then
Label1.Caption:='bezlich';
if Not(a=0) and b:=0 then
Label1.Caption:=FloatToStr(x=0):
Label1.Caption:=FloatToStr(x);
end;
Вас заинтересует
2 года назад
3 года назад
8 лет назад
8 лет назад
9 лет назад
{ TForm1 }
TForm1 = class(TForm)
Button1: TButton;
Edit1: TEdit;
Edit3: TEdit;
Label1: TLabel;
procedure Button1Click(Sender: TObject);
private
{ private declarations }
public
{ public declarations }
end;