Ver Mensaje Individual
  #1  
Antiguo 25-01-2011
llSnakell llSnakell is offline
Miembro
NULL
 
Registrado: ene 2011
Posts: 73
Reputación: 16
llSnakell Va por buen camino
Question Error En Este Ejercicio Simple ¬¬

No entiendo porque me aparece Este Error si supongo Que Todo Esta Bien
Por Diganme Que Esta Mal Y Por Que ?

Código Delphi [-]
unit Unit1;

interface

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

type
  TForm1 = class(TForm)
    Label1: TLabel;
    Label2: TLabel;
    Label3: TLabel;
    Edit1: TEdit;
    Edit2: TEdit;
    Label4: TLabel;
    Button1: TButton;
    Button2: TButton;
    procedure Button1Click(Sender: TObject);
    procedure Button2Click(Sender: TObject);
  private
    { Private declarations }
  public
    { Public declarations }
  end;

var
  Form1: TForm1;

implementation

{$R *.dfm}

procedure TForm1.Button1Click(Sender: TObject);
var
base,altura,area:real;
begin
  base:=StrToFloat(Edit1.Text);
  altura:=StrToFloat(Edit2.Text);
  area:= base*altura div 2;
  label4.Caption:='"El Area Es":'+FloatToStr(Area);
end;

procedure TForm1.Button2Click(Sender: TObject);
begin
  Close;
end;

end.

Última edición por ecfisa fecha: 25-01-2011 a las 20:59:22. Razón: Etiquetas, identado
Responder Con Cita