Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
What is the best way to remove ( and - from phone number
Message
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Environment versions
Visual FoxPro:
VFP 6 SP5
OS:
Windows XP SP2
Network:
Windows 2000 Server
Database:
MS SQL Server
Miscellaneous
Thread ID:
00998428
Message ID:
00998467
Views:
33
>Thanks - that function got me looking in the right place. I ended up using CHRTRAN because it allowed me to replace multiple characters at once. I couldn't figure out (quickly) how to do that with STRTRAN.
>
>Thanks again,
>Doug


Based on Mark's answer:
newphone = TRANSFORM(CHRTRAN(oldphone, CHRTRAN(oldphone,"0123456789",""),""),"@R 999-999-9999")
Against Stupidity the Gods themselves Contend in Vain - Johann Christoph Friedrich von Schiller
The only thing normal about database guys is their tables.
Previous
Reply
Map
View

Click here to load this message in the networking platform