Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Frustrated with ...
Message
From
08/03/1999 13:43:44
 
 
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00195099
Message ID:
00195239
Views:
18
>Thanks for the response Ed. With the set memowidth command the value of 1024 would work fine, and that is what i thought... and did... expecting it to report the correct number of lines using MEMLINES, but it does not. There are 19646 lines in the memo field, but when i SET MEMOWIDTH TO 1024 and then look at the value of memlines() and it reports 2479, i tried the value you suggested 8192 and memlines() says 303. So, what i thought was happening isn't, i expected it to give me the number of lines in the memo field. If if set memowidth to a smaller number, like 150 i get close... 19092, but "close" isn't what i need! Is there some other setting I'm missing? Help wasn't very helpful (surprise).
>
>Thanks for the info on the low level stuff too, I'll look into some of that as well.
>
>This has been frustrating because it is another case of where I read the docs about something, *think* I get it, and it doesn't work the way I expect... maybe I should take a hint! ha ha

The first thing I'd check is to see if the file was written with standard line termination; as an example, you might find linefeeds (CHR(10)) alone coming from some non-PC platforms (like Unix boxes). If you read it into a memo field, you might want to try using OCCURS() to see how many CR/LF pairs are found, something like:

? OCCURS(CHR(13)+CHR(10),mMemoField)

Then check for CHR(13) alone, CHR(10) alone, and some of the other strange things like form feeds (CHR(14)) that might be getting inserted from some non PC platforms.
EMail: EdR@edrauh.com
"See, the sun is going down..."
"No, the horizon is moving up!"
- Firesign Theater


NT and Win2K FAQ .. cWashington WSH/ADSI/WMI site
MS WSH site ........... WSH FAQ Site
Wrox Press .............. Win32 Scripting Journal
eSolutions Services, LLC

The Surgeon General has determined that prolonged exposure to the Windows Script Host may be addictive to laboratory mice and codemonkeys
Previous
Reply
Map
View

Click here to load this message in the networking platform