Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
What is the best way to remove ( and - from phone number
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Versions des environnements
Visual FoxPro:
VFP 6 SP5
OS:
Windows XP SP2
Network:
Windows 2000 Server
Database:
MS SQL Server
Divers
Thread ID:
00998428
Message ID:
00998514
Vues:
44
CLEAR

lcPhone1 = "(111) 1111111"
lcPhone2 = "111-111-1111"

lcPhone1 = STRTRAN(lcPhone1, "(", "")
lcPhone1 = STRTRAN(lcPhone1, ")", "")
lcPhone1 = STRTRAN(lcPhone1, " ", "")


lcPhone2 = STRTRAN(lcPhone2, "-", "")
lcPhone2 = STRTRAN(lcPhone2, " ", "")

? lcPhone1, lcPhone2
>I am converting phone numbers with variou formats (111) 1111111 and 111-111-1111. What is the best way to remove the ( and - characters?
>
>Thanks,
>Doug
Everything makes sense in someone's mind
public class SystemCrasher :ICrashable
In addition, an integer field is not for irrational people
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform