Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Converting formatted phone numbers to numbers
Message
De
23/05/1997 09:08:07
Dragan Nedeljkovich (En ligne)
Now officially retired
Zrenjanin, Serbia
 
 
À
21/05/1997 21:13:42
Thomas Ianuzzi
Information Security Consultants, Inc.
Floride, États-Unis
Information générale
Forum:
Visual FoxPro
Catégorie:
Autre
Divers
Thread ID:
00033207
Message ID:
00033389
Vues:
58
> is there a FoxPro function or does anyone have any code to convert a > formatted phone number such as (999)999-9999 to its digits only eliminating > any characters that are not digits? Well, the quickest way is using function StrFilter from FoxTools: digits_only=StrFilter(phone_number, "0123456789") This clears out everything except digits. Using clean Fox only, you'd have to have a list of unwanted characters to filter them out: digits_only=ChrTran(phone_number, "()-/+ ","") This clears out all the characters found in the second parameter.

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