Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Find and Replace in huge text file
Message
De
28/09/2005 04:21:08
 
Information générale
Forum:
Visual FoxPro
Catégorie:
Autre
Divers
Thread ID:
01053411
Message ID:
01053772
Vues:
32
>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.
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform