Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Reformatting Phone Numbers
Message
De
11/11/2002 17:47:34
Dragan Nedeljkovich
Now officially retired
Zrenjanin, Serbia
 
 
À
11/11/2002 16:09:28
Information générale
Forum:
Visual FoxPro
Catégorie:
Gestionnaire d'écran & Écrans
Divers
Thread ID:
00721264
Message ID:
00721325
Vues:
19
>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.
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform