Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Find and Replace in huge text file
Message
 
 
To
27/09/2005 14:42:35
General information
Forum:
Visual FoxPro
Category:
Other
Miscellaneous
Thread ID:
01053411
Message ID:
01053598
Views:
25
>
>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--
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform