>>* 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
View the map of this thread
View the map of this thread starting from this message only
View all messages of this thread
View all messages of this thread starting from this message only