Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Reading in an ascii file with FOPEN()
Message
 
 
General information
Forum:
Visual FoxPro
Category:
Other
Miscellaneous
Thread ID:
00194312
Message ID:
00194784
Views:
17
Ed,

This is only a limitation of the mline() function. A memo can easily contain a line of "infinite" length. If you use at() and substr() you can handle the long lines.

>>And a little warning if you ever choose to use memo file in between. W/o using lowlevel a memo max line width is 1024 AFAIK (hope I'm wrong and changed). If what I know is true, that would mean you wouldn't be able to use a recordsize > 1024 w/o extra care (such as using recsize instead of mline()).
>
>Under VFP6 at least, I can retrieve up to 8192 - beyond that, it truncates the line, even though the memo can BIG. The following demonstrates the limit under VFP6:
>
>
CREATE TABLE TEMP (TempMemo M)
>APPEND BLANK
>REPLACE TempMemo WITH REPL('ABCD',5000)
>cTempBefore = MLINE(TempMemo,1)
>SET MEMOWIDTH TO LEN(TempMemo)
>cTempAfter=MLINE(TempMemo,1)
>? LEN(cTempBefore), LEN(cTempAfter), LEN(TempMemo)
df (was a 10 time MVP)

df FoxPro website
FoxPro Wiki site online, editable knowledgebase
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform