>
>I just created a 150MB text file from an old program file. Just select all, copy and paste several times. Then, I did the FILETOSTR() and the OCCURS() functions on it getting back a count of 20480 occurrences of my initials in about 15 seconds. ?SUBSTR(cVar,AT('JWW',cVar,20480),3) returned 'JWW'. So, it looks to me like the string functions I was using in my suggested code are functioning OK. Or, am I missing something here?
Looks like you're correct. The most string functions do work with strings > 16MB according to
http://fox.wikis.com/wc.dll?Wiki~StringLength. Still it's always dangerous to exceed VFP documented limitations.
--sb--