Ver Mensaje Individual
  #2  
Antiguo 17-03-2008
Avatar de cHackAll
[cHackAll] cHackAll is offline
Baneado?
 
Registrado: oct 2006
Posts: 2.159
Reputación: 20
cHackAll Va por buen camino
Código Delphi [-]
procedure Tnumerov.validarn(numero:String);
var Value: Cardinal; Code: Integer;
begin
 Val(numero, Value, Code);
 if LongBool(Code) then
  showmessage('NO ES UN NUMERO')
 else
  begin
   showmessage('ES UN NUMERO');
   if Value < 10 then
    showmessage('...menor a 10');
  end;
end;

Revisar tambien la función TryStrToInt
Responder Con Cita