Page 1 of 1

how to read special characters in phone number ?

Posted: Tue Apr 26, 2011 2:35 pm
by developeretl
Hi ,
I have to read the phone number from the data and find if there are any special charaters. If so then I need it to default it depending on the special characters. Phone number in the data is displayed as "xxx-xxx-xxxx". Can you please guide how to implement the logic to read the entire phone number and default it rather than checking the area code, phone number separately .

Ex: 123-*&^-1234 or @#$-123-1234 . It should read the entire phone number and default it instead of implementing logic for area code and number separatley .

Posted: Tue Apr 26, 2011 6:58 pm
by ray.wurlod
If the hyphens are always present, then something like Num(Convert("-","",InLink.Telephone)) should suffice as the test expression in an If..Then..Else construct.

Or maybe Len(Convert("0123456789-","",InLink.Telephone))

Re: how to read special characters in phone number ?

Posted: Wed Apr 27, 2011 1:44 am
by Sampath
You Can Use NUM function

Re: how to read special characters in phone number ?

Posted: Wed Apr 27, 2011 1:56 am
by ray.wurlod
Sampath wrote:You Can Use NUM function
Oh. Did I not mention that one? Oh.
:roll:

Re: how to read special characters in phone number ?

Posted: Wed Apr 27, 2011 10:14 pm
by developeretl
Thanks for you help...