Ok Numeric Question

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • daniel aristidou
    Contributor
    • Aug 2007
    • 494

    Ok Numeric Question

    Ok....This is gonna sound Realy Stupid

    Does any one know the IsNumeric Equivalent in VB9 / VB 2008

    Its just that i cant seem to find it!!!
  • lotus18
    Contributor
    • Nov 2007
    • 865

    #2
    Originally posted by daniel aristidou
    Ok....This is gonna sound Realy Stupid

    Does any one know the IsNumeric Equivalent in VB9 / VB 2008

    Its just that i cant seem to find it!!!
    In vb 2005, you can upgrade your vb 6 codes to .NET. I didn't yet used vb 2008 but I hope that this feature has been included .

    Rey Sean
    Last edited by lotus18; Apr 25 '08, 11:31 AM. Reason: 'not' removed

    Comment

    • BlackMustard
      New Member
      • Aug 2007
      • 88

      #3
      Originally posted by daniel aristidou
      Ok....This is gonna sound Realy Stupid

      Does any one know the IsNumeric Equivalent in VB9 / VB 2008

      Its just that i cant seem to find it!!!
      according to msdn, IsNumeric should work in .Net 3.5 (VB 2008) as well: http://msdn2.microsoft .com/en-us/library/6cd3f6w1.aspx

      Comment

      • daniel aristidou
        Contributor
        • Aug 2007
        • 494

        #4
        Originally posted by BlackMustard
        according to msdn, IsNumeric should work in .Net 3.5 (VB 2008) as well: http://msdn2.microsoft .com/en-us/library/6cd3f6w1.aspx
        Well im afraid to say...i cant seem to find it.

        and the convert up code feature seems see isnumeric as correct for vb 2008 but vb just doesnt seem to accept it.

        Do i need to import a specific reference?

        Comment

        • BlackMustard
          New Member
          • Aug 2007
          • 88

          #5
          Originally posted by daniel aristidou
          Well im afraid to say...i cant seem to find it.

          and the convert up code feature seems see isnumeric as correct for vb 2008 but vb just doesnt seem to accept it.

          Do i need to import a specific reference?
          yes, you need to import Microsoft.Visua lBasic - it's on the msdn page:

          "Requiremen ts
          - Namespace: Microsoft.Visua lBasic
          - Module: Information
          - Assembly: Visual Basic Runtime Library (in Microsoft.Visua lBasic.dll)"

          if you add [code=vb]Imports Microsoft.Visua lBasic[/code] at the top, it will work.

          Comment

          • daniel aristidou
            Contributor
            • Aug 2007
            • 494

            #6
            Originally posted by BlackMustard
            yes, you need to import Microsoft.Visua lBasic - it's on the msdn page:

            "Requiremen ts
            - Namespace: Microsoft.Visua lBasic
            - Module: Information
            - Assembly: Visual Basic Runtime Library (in Microsoft.Visua lBasic.dll)"

            if you add [code=vb]Imports Microsoft.Visua lBasic[/code] at the top, it will work.
            Ok ill give it a go............. .

            Comment

            • daniel aristidou
              Contributor
              • Aug 2007
              • 494

              #7
              Originally posted by daniel aristidou
              Ok ill give it a go............. .

              Wow Wow Wow ......
              it worked.....
              How wierd....
              Visual basic requires you to import itself

              Comment

              Working...