Ver Mensaje Individual
  #2  
Antiguo 04-07-2003
Avatar de marcoszorrilla
marcoszorrilla marcoszorrilla is offline
Capo
 
Registrado: may 2003
Ubicación: Cantabria - España
Posts: 11.221
Reputación: 10
marcoszorrilla Va por buen camino
Prueba con esta idea:

Código:
procedure TForm1.Edit2Exit(Sender: TObject);
var
nValor,ErrCode:Integer;
begin
val(edit2.text,nValor,Errcode);
   if errCode <> 0 then
    MessageDlg('Error en la position: ' + IntToStr(ErrCode), mtWarning, [mbOk], 0)
  else
    if nValor > StrToInt(edit1.text) then
    edit3.SetFocus
    else
    edit4.SetFocus;

end;
Un Saludo.
Responder Con Cita