Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
String Transformations
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Divers
Thread ID:
00202974
Message ID:
00202982
Vues:
19
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
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform