Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Remove carriage returns in memos
Message
From
14/06/2001 09:18:32
Dragan Nedeljkovich (Online)
Now officially retired
Zrenjanin, Serbia
 
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00518280
Message ID:
00519270
Views:
14
>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.
Previous
Reply
Map
View

Click here to load this message in the networking platform