2 Replies - 2814 Views - Last Post: 02 September 2005 - 05:32 AM Rate Topic: -----

#1 JLT  Icon User is offline

  • New D.I.C Head

Reputation: 0
  • View blog
  • Posts: 1
  • Joined: 01-September 05

validaing phone numbers

Post icon  Posted 01 September 2005 - 06:18 PM

I am having trouble validating phone numbers in vb.net
can some one give me some advice? Thanks
Is This A Good Question/Topic? 0
  • +

Replies To: validaing phone numbers

#2 SPlutard  Icon User is offline

  • code.ninja
  • member icon

Reputation: 17
  • View blog
  • Posts: 615
  • Joined: 13-August 05

Re: validaing phone numbers

Posted 01 September 2005 - 09:45 PM

You should post this in the VB forum - you'll get more replies.

By the way, welcome to </dic>!! B)

This post has been edited by SPlutard: 01 September 2005 - 09:45 PM

Was This Post Helpful? 0
  • +
  • -

#3 Amadeus  Icon User is offline

  • g+ + -o drink whiskey.cpp
  • member icon

Reputation: 248
  • View blog
  • Posts: 13,507
  • Joined: 12-July 02

Re: validaing phone numbers

Posted 02 September 2005 - 05:32 AM

Moved to the appropriate forum.

As for the validation of a phone number (or any established pattern), it is merely a matter ensuring that the entered value matches the regular expression...

For example, for a phone number, you can cjeck the length of the number entered, split the string into sections, ensure that each of the three section is comprised of numbers, etc...

Instead of typing it out, I'll point you to an implementation that can easily be modified to perform as needed...it will validate phone numbers among a variety of other pattern strings.

Click Away
Was This Post Helpful? 0
  • +
  • -

Page 1 of 1