You can try

If IsNumeric(str) Then
Convert.ToInt32(str)
End If


--
Craig Deelsnyder
Microsoft MVP - ASP/ASP.NET


"Andreas Klemt" <aklemt68hotmail.com> wrote in message
news:%23AH5L5IVDHA.2568tk2msftngp13.phx.gbl...
> Hello,
>
> I have a String like "128128".
> How can I check without error message if my String is a Number or Integer?
>
> When I do this
>
> Dim str As String = "x"
> Convert.ToInt32(str)
>
> I get an error message.
>
> Thanks,
> Andreas
>
>