Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
ATLINE() bug and workaround?
Message
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00138760
Message ID:
00139248
Views:
39
> SubStr(lcMemo,_MLINE)

Well, hell <s>... Learn something new everyday. Didn't know that _MLINE returns a character offset. Cool.

>That definitely sounds like you don't use the _MLINE variable with MLINE(). Actually these operation can be quite fast.

No I wasn't using _MLINE, but still MLINE() and ATLINE() both are very very slow on large strings. I just checked the code I updated to and then changed it to use _MLINE and the original hack still ran 2-3 times faster. A single ATLINE in the large file took longer than to manually parse the strings and reading backwards through 3000 characters!

+++ Rick ---
+++ Rick ---

West Wind Technologies
Maui, Hawaii

west-wind.com/
West Wind Message Board
Rick's Web Log
Markdown Monster
---
Making waves on the Web

Where do you want to surf today?
Previous
Reply
Map
View

Click here to load this message in the networking platform