Results 1 to 5 of 5

Thread: Validation

  1. #1

    Thread Starter
    Addicted Member
    Join Date
    Nov 2001
    Posts
    181

    Thumbs up Validation

    Hi All,

    Does anyone has a function that validates the fax number.Plz help me on this.Thankz in advance.

  2. #2
    Conquistador
    Join Date
    Dec 1999
    Location
    Australia
    Posts
    4,527
    what can't be in a fax number?

  3. #3
    Frenzied Member nishantp's Avatar
    Join Date
    Jan 2001
    Location
    Where you least expect me to be
    Posts
    1,375
    please clarify.
    You just proved that sig advertisements work.

  4. #4

    Thread Starter
    Addicted Member
    Join Date
    Nov 2001
    Posts
    181

    Validation

    i want to remove all characters other than the numbers

  5. #5
    Registered User Nucleus's Avatar
    Join Date
    Apr 2001
    Location
    So that's what you are up to ;)
    Posts
    2,530
    VB Code:
    1. Function ExtractNumbers(s As String) As String
    2.  Dim ba() As Byte,v As byte,i&
    3.  ba = s
    4.  For i = 0 To UBound(ba) step 2
    5.     v = ba(i)
    6.     If v > 47 And v < 58 Then ExtractNumbers = ExtractNumbers & Chr$(v)
    7.  Next i
    8. End Function

Posting Permissions

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



Click Here to Expand Forum to Full Width