Ver Mensaje Individual
  #3  
Antiguo 14-11-2003
Avatar de Lepe
[Lepe] Lepe is offline
Miembro Premium
 
Registrado: may 2003
Posts: 7.424
Reputación: 29
Lepe Va por buen camino
otra forma de hacerlo sin utilizar las excepciones podria ser esta:

Código:
      if trystrtoint (dbedit2.Text,i) then
      begin
          // se ha podido convertir y el valor está en la variable "i"
      end
      else   // no se ha podido convertir a numero

Saludos
Responder Con Cita