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:
00138934
Views:
20
Rick,

It might be worth the effort of putting this in a C++ DLL.

>>To get all lines that end with a certain you can use ATLINE() to determine the line that includes this word, and then use RAT() and MLINE() to verify that it's indeed the last word in this particular line.
>
>Uhm, how do you go from char location to line location and back? I don't
>think you can. Once you find the line and need to go on you can't use ATLINE
>anymore either cause it doesn't have a nOccurance option like AT. IOW,
>you need to find the right thing on the first hit or it's no good.
>
>FWIW, I ditched the whole ATLINE(), MLINE() situation in my parsing code.
>I was working on PRG files (as text) that were like 50k or so and it took
>3 minutes to parse out just the function names. MLINE() and ATLINE() both
>are very, very slow on large text strings it appears.
>
>I used ATC parsing instead and then clipped out 1000 chars before and 1000
>chars after then used MLINE() on that and the results came back in under
>1 second for 40 or so methods. Go figure...
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