Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
I'm loosing a VFP - VB battle
Message
General information
Forum:
Visual FoxPro
Category:
Other
Miscellaneous
Thread ID:
00342582
Message ID:
00365836
Views:
21
If you find something with a whole .txt, please let me know. The best I could get AltaVista to give me was http://www.friends-partners.org/newfriends/culture/literature/war_and_peace/ and I don't think it's all there (I never read the book but what's at that URL doesn't look like 3.5mb).

Thanks!



>I don't remember the URL, but do a search on "War and Peace" and you'll find it. It actually comes on several different web pages, but you can save them to disk.
>
>
>>So Craig, where can I get my hands on that text? I need to show some real-world examples over here. Thanks.
>>
>>>
>>>Have them conduct a test. Take any large text file. For example, you can download the text of "War and Peace", which is roughly 3.5 Meg. Do the following in both VB and VFP:
>>>
>>>- Read the entire file into a variable. In VFP you would use FileToStr()
>>>- Count the number of times the word "Anna" is in the text. In VFP use OCCURS()
>>>- Replace "Anna" with another word. In VFP use STRTRAN().
>>>
>>>VFP will run rings around VB here. This shows that VFP is far superior to VB when it comes to text manipulation, which is all HTML is.
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform