Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Find a phone number inside a string
Message
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Environment versions
Visual FoxPro:
VFP 9 SP1
OS:
Windows XP SP2
Network:
Windows 2003 Server
Database:
MS SQL Server
Miscellaneous
Thread ID:
01321918
Message ID:
01321924
Views:
25
>>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
Previous
Reply
Map
View

Click here to load this message in the networking platform