Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
String Transformations
Message
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00202974
Message ID:
00202982
Views:
20
Hi Jaime,

>I'm trying to move a FP DOS app. to VFP. Is there an easy way to replace a whole string with say the same string but with all characters shifted by 20 in the Ascii table? I know i can build an array from the original string, do the ASCII transform. and then replace it, but is there an easier ( and faster ) way to do it?

You could use CHRTRAN(). The second parameter would contain all ASCII codes from 0 to 255, the third parameter all ASCII codes from 20 to 255 and then from 0 to 19.

Christof
--
Christof
Previous
Reply
Map
View

Click here to load this message in the networking platform