.NET IsNumeric function

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • Joe

    .NET IsNumeric function

    Hello All:

    Does anyone know how someone would check for a numeric value in .NET? In
    VB6, we used IsNumeric. What's the .NET equivalent?

    BTW, I know that I can harken back to IsNumeric. I'm trying to purge any
    trace of VB6 from my code.

    TIA,
    --
    Joe
  • Joe

    #2
    RE: .NET IsNumeric function

    Thanks.
    --
    Joe


    "brians[MCSD]" wrote:
    [color=blue]
    > Hello Joe - do a search on this group for IsNumeric and you'll find an
    > enlightening thread from 1/15/2006. Essentially, the thread boils down to the
    > TryParse() method.
    >
    > --
    > brians
    > http://www.limbertech.com
    >
    >
    > "Joe" wrote:
    >[color=green]
    > > Hello All:
    > >
    > > Does anyone know how someone would check for a numeric value in .NET? In
    > > VB6, we used IsNumeric. What's the .NET equivalent?
    > >
    > > BTW, I know that I can harken back to IsNumeric. I'm trying to purge any
    > > trace of VB6 from my code.
    > >
    > > TIA,
    > > --
    > > Joe[/color][/color]

    Comment

    • brians[MCSD]

      #3
      RE: .NET IsNumeric function

      Hello Joe - do a search on this group for IsNumeric and you'll find an
      enlightening thread from 1/15/2006. Essentially, the thread boils down to the
      TryParse() method.

      --
      brians



      "Joe" wrote:
      [color=blue]
      > Hello All:
      >
      > Does anyone know how someone would check for a numeric value in .NET? In
      > VB6, we used IsNumeric. What's the .NET equivalent?
      >
      > BTW, I know that I can harken back to IsNumeric. I'm trying to purge any
      > trace of VB6 from my code.
      >
      > TIA,
      > --
      > Joe[/color]

      Comment

      • Steve C. Orr [MVP, MCSD]

        #4
        Re: .NET IsNumeric function

        There is no direct equivalent in the .NET framework, but if you're using
        VB.NET, IsNumeric is still a legitimate function that is not obsolete in any
        way. So feel free to use it. For that matter, even if you're using C# you
        can import the visual basic namespace and use the function that way. Some
        things are just better about VB and that's ok.

        --
        I hope this helps,
        Steve C. Orr, MCSD, MVP
        HALOJP adalah situs slot online resmi terpercaya yang tawarkan akses gampang maxwin. Cukup depo 10k, nikmati ribuan game gacor dengan sistem aman dan pembayaran lancar.



        "Joe" <Joe@discussion s.microsoft.com > wrote in message
        news:80996D7B-675C-4142-B3CE-9DFAB4F5CB2F@mi crosoft.com...[color=blue]
        > Hello All:
        >
        > Does anyone know how someone would check for a numeric value in .NET? In
        > VB6, we used IsNumeric. What's the .NET equivalent?
        >
        > BTW, I know that I can harken back to IsNumeric. I'm trying to purge any
        > trace of VB6 from my code.
        >
        > TIA,
        > --
        > Joe[/color]


        Comment

        • Michael D. Ober

          #5
          Re: .NET IsNumeric function

          The VB 2005 equivalent is IsNumeric().

          Mike Ober.

          "Joe" <Joe@discussion s.microsoft.com > wrote in message
          news:80996D7B-675C-4142-B3CE-9DFAB4F5CB2F@mi crosoft.com...[color=blue]
          > Hello All:
          >
          > Does anyone know how someone would check for a numeric value in .NET? In
          > VB6, we used IsNumeric. What's the .NET equivalent?
          >
          > BTW, I know that I can harken back to IsNumeric. I'm trying to purge any
          > trace of VB6 from my code.
          >
          > TIA,
          > --
          > Joe
          >[/color]



          Comment

          • Joe

            #6
            Re: .NET IsNumeric function

            Thanks.
            --
            Joe


            "Steve C. Orr [MVP, MCSD]" wrote:
            [color=blue]
            > There is no direct equivalent in the .NET framework, but if you're using
            > VB.NET, IsNumeric is still a legitimate function that is not obsolete in any
            > way. So feel free to use it. For that matter, even if you're using C# you
            > can import the visual basic namespace and use the function that way. Some
            > things are just better about VB and that's ok.
            >
            > --
            > I hope this helps,
            > Steve C. Orr, MCSD, MVP
            > http://SteveOrr.net
            >
            >
            > "Joe" <Joe@discussion s.microsoft.com > wrote in message
            > news:80996D7B-675C-4142-B3CE-9DFAB4F5CB2F@mi crosoft.com...[color=green]
            > > Hello All:
            > >
            > > Does anyone know how someone would check for a numeric value in .NET? In
            > > VB6, we used IsNumeric. What's the .NET equivalent?
            > >
            > > BTW, I know that I can harken back to IsNumeric. I'm trying to purge any
            > > trace of VB6 from my code.
            > >
            > > TIA,
            > > --
            > > Joe[/color]
            >
            >
            >[/color]

            Comment

            • Joe

              #7
              Re: .NET IsNumeric function

              Michael,

              In which namespace?
              --
              Joe


              "Michael D. Ober" wrote:
              [color=blue]
              > The VB 2005 equivalent is IsNumeric().
              >
              > Mike Ober.
              >
              > "Joe" <Joe@discussion s.microsoft.com > wrote in message
              > news:80996D7B-675C-4142-B3CE-9DFAB4F5CB2F@mi crosoft.com...[color=green]
              > > Hello All:
              > >
              > > Does anyone know how someone would check for a numeric value in .NET? In
              > > VB6, we used IsNumeric. What's the .NET equivalent?
              > >
              > > BTW, I know that I can harken back to IsNumeric. I'm trying to purge any
              > > trace of VB6 from my code.
              > >
              > > TIA,
              > > --
              > > Joe
              > >[/color]
              >
              >
              >
              >[/color]

              Comment

              • Michael D. Ober

                #8
                Re: .NET IsNumeric function

                In the default namespace when I create a VB 2005 application.

                Mike.

                "Joe" <Joe@discussion s.microsoft.com > wrote in message
                news:5ADB0D7D-6D35-4E31-BCD4-100DADA81EA1@mi crosoft.com...[color=blue]
                > Michael,
                >
                > In which namespace?
                > --
                > Joe
                >
                >
                > "Michael D. Ober" wrote:
                >[color=green]
                > > The VB 2005 equivalent is IsNumeric().
                > >
                > > Mike Ober.
                > >
                > > "Joe" <Joe@discussion s.microsoft.com > wrote in message
                > > news:80996D7B-675C-4142-B3CE-9DFAB4F5CB2F@mi crosoft.com...[color=darkred]
                > > > Hello All:
                > > >
                > > > Does anyone know how someone would check for a numeric value in .NET?[/color][/color][/color]
                In[color=blue][color=green][color=darkred]
                > > > VB6, we used IsNumeric. What's the .NET equivalent?
                > > >
                > > > BTW, I know that I can harken back to IsNumeric. I'm trying to purge[/color][/color][/color]
                any[color=blue][color=green][color=darkred]
                > > > trace of VB6 from my code.
                > > >
                > > > TIA,
                > > > --
                > > > Joe
                > > >[/color]
                > >
                > >
                > >
                > >[/color]
                >[/color]



                Comment

                Working...