Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Strtran ()
Message
From
05/09/2007 09:34:59
Cetin Basoz
Engineerica Inc.
Izmir, Turkey
 
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Title:
Miscellaneous
Thread ID:
01252385
Message ID:
01252408
Views:
17
>In the code below:
>
>
>STORE "07381983874" to US3
>
>US_CH = STRTRAN (US3,"1234567890","HFJLRX435U")
>
>= MESSAGEBOX (US_CH)
>
>THE RESULT IS "07381983874"
>
>why is it no changing ?

Moises,
With strtran() you're saying "if you find this string then replace with that string". As Sergey and Gregory said already use chrtran() instead.
STORE "07381983874" to US3
US_CH = CHRTRAN(m.US3,"1234567890","HFJLRX435U")
MESSAGEBOX(m.us_ch)
Cetin
Çetin Basöz

The way to Go
Flutter - For mobile, web and desktop.
World's most advanced open source relational database.
.Net for foxheads - Blog (main)
FoxSharp - Blog (mirror)
Welcome to FoxyClasses

LinqPad - C#,VB,F#,SQL,eSQL ... scratchpad
Previous
Reply
Map
View

Click here to load this message in the networking platform