Re: How to check whether the value is a whole number not?

Tech Tip: Click here to run a free scan for Windows Errors and optimize PC performance



Thanks. I will go try it out.

"Peter van der Goes" wrote:

>
> "Siew Yee" <SiewYee@xxxxxxxxxxxxxxxxxxxxxxxxx> wrote in message
> news:E2563ABC-B3F6-4C42-8586-F00E48627B10@xxxxxxxxxxxxxxxx
> > Hi,
> >
> > Does C# provide a method to check/validate whether the value is a whole
> > number not?
> > Thanks.
> >
> > Regards,
> > Siew Yee
>
> Reaseach the .NET Framework Convert class. If, for example, you were to use
> the Convert.ToInt32 method in a try - catch block, any attempt to convert an
> argument that is not an integer will throw an exception and you can deal
> with it.
>
> --
> Peter [MVP Visual Developer]
> Jack of all trades, master of none.
>
>
>
.



Relevant Pages

  • Re: Just your opinion about MFC and C++.NET
    ... > Peter van der Goes wrote: ... Carl! ... Peter [MVP Visual Developer] ... Jack of all trades, master of none. ...
    (microsoft.public.dotnet.languages.vc)
  • Re: Cannot Uninstall .NET Ent Arch
    ... Architect. ... "Peter van der Goes" wrote: ... >> I am trying to uninstall the original version of .NET Enterprise Architect ... > Peter [MVP Visual Developer] ...
    (microsoft.public.dotnet.general)
  • Re: Setup starts "VIA Service Pack 4.05v" setup
    ... >I found the following fix from Peter van der Goes for someone else's ... Have fun with Visual Studio! ... Peter [MVP Visual Developer] ...
    (microsoft.public.vsnet.setup)
  • Re: failed to install VS 2003 from MSDN dvd
    ... is a notebook with only a CD-ROM drive. ... "Peter van der Goes" wrote: ... > Jack of all trades, ...
    (microsoft.public.vsnet.setup)