Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Problem with strtran()
Message
From
08/09/2000 20:46:26
 
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00414505
Message ID:
00414514
Views:
21
>I have a large rtf file (~300KB) with a bunch of "slugs" in it. What I mean by slugs are variables surrounded by "<<" and ">>". So the file would look something like :
>
>blah blah blah <> blah blah
>
>
>I use filetostr to put the entire file into a string then I use strtran to find and replace the slugs with values. The problem is that strtran doesn't seem to replacing all the slugs. It will replace some of them but not all even when the slugs are exactly the same.
>
>Is there a better way to do what I need? Is there a way around this apparent strtran problem?
>
>Thanks

Can you post some of the code?
Does it seem to be affected by some slugs more that others?
Insanity: Doing the same thing over and over and expecting different results.
Previous
Reply
Map
View

Click here to load this message in the networking platform