Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Getwordcount way off??
Message
General information
Forum:
Visual FoxPro
Category:
Other
Miscellaneous
Thread ID:
00833318
Message ID:
00833358
Views:
29
>>Anyone know what would cause VFP’s Getwordcount function to yield a dramatically different count than MS Word?
>>
>>I have a text file. Replaced any chr 9’s with spaces.
>>
>>If if do a getwordcount(mystring) I get 4012. The same file in MS word shows 2275
>>
>>I did this under version and have not tried it under 8.
>>
>>Thanks,
>
>If you replace CHR(13)'s and CHR(10)'S with spaces does it line up better?

Perfect!
That made it an exact match.
The docs on the function said it only looked at spaces and chr9

Thanks,
Chris
Previous
Reply
Map
View

Click here to load this message in the networking platform