Witaj Gościu! ( Zaloguj | Rejestruj )

Forum PHP.pl

> delphi , problem z formem
Spawnm
post 15.04.2009, 12:09:43
Post #1





Grupa: Moderatorzy
Postów: 4 069
Pomógł: 497
Dołączył: 11.05.2007
Skąd: Warszawa




Witam,

dziś zacząłem bawić się z delphi i mam problem:
daje 2 inputy aby user coś wpisał , potem chce je do siebie dodać/pomnożyć je
i właśnie w tym jest problem to kompilator nie pozwala mi mnożyć a zamiast dodać 2+2=4 robi 2+2=22 ...
kod :
  1. <?php
  2. unit Unit1;
  3.  
  4. interface
  5.  
  6. uses
  7.  Windows, Messages, SysUtils, Variants, Classes, Graphics, Controls, Forms,
  8.  Dialogs, ExtCtrls, StdCtrls;
  9.  
  10. type
  11.  TForm1 = class(TForm)
  12.    Button1: TButton;
  13.    Edit1: TEdit;
  14.    Edit2: TEdit;
  15.    Panel1: TPanel;
  16.    procedure Button1Click(Sender: TObject);
  17.  private
  18.    { Private declarations }
  19.  public
  20.    { Public declarations }
  21.  end;
  22.  
  23. var
  24.  Form1: TForm1;
  25.  
  26. implementation
  27.  
  28. {$R *.dfm}
  29.  
  30. procedure TForm1.Button1Click(Sender: TObject);
  31. begin
  32. panel1.caption:=edit1.text + edit2.text;
  33.  
  34. ?>

Tak więc pytanie co zrobić aby dodawało normalnie smile.gif
Go to the top of the page
+Quote Post

Posty w temacie


Reply to this topicStart new topic
1 Użytkowników czyta ten temat (1 Gości i 0 Anonimowych użytkowników)
0 Zarejestrowanych:

 



RSS Wersja Lo-Fi Aktualny czas: 14.08.2025 - 08:50