07-01-2014, 01:33 AM
Edit1 and Edit2 OnChange
Edit1 and Edit2 OnKeyPress
كود :
var x,y : Integer;
begin
if Edit1.Text <> '' then
X:= StrToInt(Edit1.Text) else X := 0;
if Edit2.Text <> '' then
Y := StrToInt(Edit2.Text) else Y := 0;
Edit3.Text := IntToStr(x+y);
end;Edit1 and Edit2 OnKeyPress
كود :
if not(Key in [#8, '0' .. '9']) then
begin
Key := #0;
end;
