>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