Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Remove carriage returns in memos
Message
De
14/06/2001 09:18:32
Dragan Nedeljkovich
Now officially retired
Zrenjanin, Serbia
 
 
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Divers
Thread ID:
00518280
Message ID:
00519270
Vues:
15
>I've played with reduce in VFP6.0, here is a simple test:
>
>lcStr=repl("A  ",5000000)
>lcStr=reduce(lcStr,"  ")
>?len(lcStr)
>
>Looks like it doesn't reduce correctly?

OK, so the limit is moved, and seems to depend on the actual length of the string; anyway, there still is some limit and it seems to be at 64K for the result, and 16M for the string passed. Try this:
lcStr='A   '
for i=1 to 40
	lcStr=lcStr+lcStr
	lcReduced=reduce(lcStr," ")
	?len(lcStr), len(lcReduced), occurs('A', lcReduced)
endf

back to same old

the first online autobiography, unfinished by design
What, me reckless? I'm full of recks!
Balkans, eh? Count them.
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform