Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Converting formatted phone numbers to numbers
Message
 
À
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:
00033262
Vues:
39
>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?

Hi Thomas.
Use STRTRAN(), m.clean_number=STRTRAN("(999)999-999","(",SPACE(0))

look under help for the details.
Hope this help.
Luis Guzman, MCP
"The only glory most of us have to hope for
is the glory of being normal." Katherine Fulleton Gerould
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform