Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
REDUCE() function truncates after about 64K
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Problèmes
Divers
Thread ID:
01033943
Message ID:
01033951
Vues:
22
>Does anybody have an alternative to the foxtools reduce() function that will handle long strings (100K or more in length)? Thanks.


Not as fast as C++ but you can use this:
FUNCTION Reduce(cString, cReplace)

IF PCOUNT() > 1
   cString = CHRTRAN(cString, cReplace, SPACE(LEN(cReplace)))
ENDIF

DO WHILE "  " $ cString
   cString = STRTRAN(cString, "  ", " ")
ENDDO

RETURN cString
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform