Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Replace chr(2) & chr(1)
Message
De
02/04/2012 13:19:40
 
 
À
02/04/2012 12:36:45
Andy Roth
Neyenesch Printers
Californie, États-Unis
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Divers
Thread ID:
01540029
Message ID:
01540037
Vues:
46
>I have some text that I converted to ascii to see what character codes were in it so I could replace them
>
>the text is
>
>April 9th Program materials
>
>the Ascii code converts to this
>65 112 114 105 108 32 57 116 104 32 80 114 111 103 114 97 109 32 109 97 116 101 114 105 97 108 115 2 1
>
>when I try m.des1=STRTRAN(description,CHR(2)+CHR(1),'') it does not replace the characters
>with a space.
>
>I need this and other information to be on one line.
>any suggestions?
x1=[April 9th Program materials]
x1
x1=x1+CHR(2)+CHR(1)
?LEN(x1) ----->29
?LEN(CHRTRAN(x1,CHR(2)+CHR(1),"")) ------->27

works here VFP9.2
Peter Cortiel
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform