Ver Mensaje Individual
  #3  
Antiguo 27-07-2018
Jorgeeyv Jorgeeyv is offline
Miembro
NULL
 
Registrado: mar 2018
Posts: 18
Reputación: 0
Jorgeeyv Va por buen camino
No logro nada con el codigo mi amigo, incluso hice un form nuevo con un tEdit y un speedButton y no hace nada. alguna observacion?

Cita:
Empezado por ecfisa Ver Mensaje
Hola.

Código Delphi [-]
procedure TForm1.SpeedButton1Click(Sender: TObject);
var
  ed: TEdit;
begin
  if ActiveControl is TEdit then
  begin
    ed := TEdit(ActiveControl);
    ed.Text := IntToSTr(StrToIntDef(ed.Text,0)+1);
  end;
end;

Saludos
Responder Con Cita