Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Find a phone number inside a string
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Versions des environnements
Visual FoxPro:
VFP 9 SP1
OS:
Windows XP SP2
Network:
Windows 2003 Server
Database:
MS SQL Server
Divers
Thread ID:
01321918
Message ID:
01321924
Vues:
26
>>With simple chrtran()
>>
>>lcNumbers = '0123456789'
>>
>>lcNewString = chrtran(m.lcString,m.lcNumbers, replicate('9',10))
>>
>>? "999-9999" $ lcNewString
>
>Very cool!

I wrote it from the head (don't have VFP here), but I know this idea from my "old" days.
If it's not broken, fix it until it is.


My Blog
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform