Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Find and Replace in huge text file
Message
From
28/09/2005 04:21:08
 
General information
Forum:
Visual FoxPro
Category:
Other
Miscellaneous
Thread ID:
01053411
Message ID:
01053772
Views:
29
>You just need to add one more case and it must be the FIRST case
>CASE LEFT(lcBuffer,4) == "ADOA"
> ** Do Nothing
>

Try with this source:
....XAD0AD0AD0A.....
* correct
....XBR77D0BR77.....

* process produce this split
lcBuffer (n)   =.....XAD0AD0A
lcBuffer (n+1) = D0A.....

* with your change
....XBR77D0AD0A.....
and you lose a replacement.

Mix right with left F/R is wrong.

the best way is:
to make the substitution on the buffer,
and to know the last replaced character,
and therefore to leave again from the following one.
But STRTRAN() it doesn't return this information.
Previous
Reply
Map
View

Click here to load this message in the networking platform