Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Reformatting Phone Numbers
Message
From
11/11/2002 17:47:34
Dragan Nedeljkovich (Online)
Now officially retired
Zrenjanin, Serbia
 
 
To
11/11/2002 16:09:28
General information
Forum:
Visual FoxPro
Category:
Forms & Form designer
Miscellaneous
Thread ID:
00721264
Message ID:
00721325
Views:
17
>I have 8,000 records in a table. I would like to remove any characters such as(,),- that are currently there separating the area code from the number, being left with just the numbers.
>Example:
>Current: (800)555-5555
>I would like to see: 8885555555
>Then I can set the format and input mask properties for future entries.

Just to prove that anything can be done at least three ways in Fox, else it's not worth doing:

If you're using FoxTools.fll, you have the strfilter function:

Replace all cPhone with strfilter(cPhone, "0123456789")

back to same old

the first online autobiography, unfinished by design
What, me reckless? I'm full of recks!
Balkans, eh? Count them.
Previous
Reply
Map
View

Click here to load this message in the networking platform