>>
>>OK, I guess I'm a little dense today. How does the file size affect what I suggested?
>
>The VFP string size limit is under 16MB. You can read more than that into a string with FILETOSTR() but most string functions will fail on the strings that exceeds the limit.
Sergey,
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?
Regards,
Jim