Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
FLL Library & VFP6
Message
From
30/10/1998 18:49:28
 
 
To
30/10/1998 09:43:59
Dragan Nedeljkovich (Online)
Now officially retired
Zrenjanin, Serbia
General information
Forum:
Visual FoxPro
Category:
Other
Miscellaneous
Thread ID:
00149291
Message ID:
00153092
Views:
47
>>* cutting the string up
>>t1= seconds()
>>cStr= cData
>>DO WHILE LEN(m.cStr)>0
>> nn= AT(k_SEP, m.cStr)
>> cWord= LEFT(m.cStr, m.nn-1)
>> cStr= SUBSTR(m.cStr, m.nn+1)
>>ENDDO
>>tz= seconds() - m.t1
>>
>>MessageBox("AT+SUBSTR: " + ltrim(str(m.tx, 12,4)) ; && 30secs
>> + CHR(13) + "FOXTOOLS: " + ltrim(str(m.ty, 12,4)) ; && 45 secs
>> + CHR(13) + "AT+LEFT:" + ltrim(str(m.tz, 12,4)), ; && 16 secs
>> 48, "Results")
>>* => So Fox *is* faster than C
>
>Well, well, who would say. I'm in some rush now, but will try something along these lines tonight. I'll be absent 'till Tuesday evening, so... this will have to wait. Did you try to test it with mline()?

Didn't try MLINE() because I will regularly have "words" bigger than 1024 bytes. So I'd have to check for delims in every line. But as you say, MLINE() is very fast using the extra offset parameter

BTW I often get tab delimited files which often have "fields" of more than 256 characters and so I do quite a bit of "roll your own". You can't APPEND FROM... into memo fields - least not last time I checked.
Previous
Reply
Map
View

Click here to load this message in the networking platform