Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Replace chr(2) & chr(1)
Message
From
02/04/2012 12:44:42
 
 
To
02/04/2012 12:36:45
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
01540029
Message ID:
01540031
Views:
62
>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?

I made the test here and it works well. Are you sure the last two characters are in sequence for CHR(2) and CHR(1)?
Michel Fournier
Level Extreme Inc.
Designer, architect, owner of the Level Extreme Platform
Subscribe to the site at https://www.levelextreme.com/Home/DataEntry?Activator=55&NoStore=303
Subscription benefits https://www.levelextreme.com/Home/ViewPage?Activator=7&ID=52
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform