Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Alines()
Message
 
 
To
01/07/2006 13:39:38
Dragan Nedeljkovich (Online)
Now officially retired
Zrenjanin, Serbia
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Title:
Environment versions
Visual FoxPro:
VFP 7 SP1
OS:
Windows XP SP1
Network:
Windows 2003 Server
Database:
Visual FoxPro
Miscellaneous
Thread ID:
01133139
Message ID:
01133273
Views:
21
>And the little known fact about the _mline system variable, which keeps the beginning of the next line (as a byte offset). So while
>
>
for i=1 to memlines(c)
>   ?mline(c,i)
>endfor
>
>might work fine, this would be much better (or at least faster):
>
_mline=1
>for i=1 to memlines(c)
>   ?mline(c, 1, _mline)
>endfor
>
>because in the latter case Fox knows exactly where to start and doesn't count lines until the ith. Try with a huge string and you'll notice the difference.

Another thing to remember is SET MEMOWIDTH TO (default 50). It affects memlines(), mline(), e.t.c. but not ALINES().
--sb--
Previous
Reply
Map
View

Click here to load this message in the networking platform