sábado, 6 de junho de 2009

Como verificar se uma string contém um inteiro?

function IsInteger(TestaString: String) : boolean;
begin
try
StrToInt(TestaString);
except
On EConvertError do result := False;
else
result := True;
end;
end;

Nenhum comentário:

Postar um comentário