www.webdeveloper.com
Results 1 to 5 of 5

Thread: Numbers Only

  1. #1
    Join Date
    Feb 2004
    Posts
    1,345

    Numbers Only

    How can I check string to be numbers only?
    Can I use the cInt() command?
    Weee

  2. #2
    Join Date
    Jan 2004
    Location
    Melbourne, Australia
    Posts
    5,298
    Code:
    If IsNumeric(stringName) Then
       ' Is a string
    End If

  3. #3
    Join Date
    Feb 2004
    Posts
    1,345
    Can I say:
    If IsNotNumeric(stringName) Then
    ' Is a string
    End If

    ?
    Weee

  4. #4
    Join Date
    Feb 2004
    Posts
    1,345
    Yea, got it.

    Thanks!
    Weee

  5. #5
    Join Date
    Jan 2004
    Location
    Melbourne, Australia
    Posts
    5,298
    Just for clarification, you need to use the Not operator.
    Code:
    If Not IsNumeric(stringName) Then
       ' Statements...
    End If
    Regards.

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
HTML5 Development Center



Recent Articles