Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
FLL Library & VFP6
Message
De
30/10/1998 18:49:28
 
 
À
30/10/1998 09:43:59
Dragan Nedeljkovich (En ligne)
Now officially retired
Zrenjanin, Serbia
Information générale
Forum:
Visual FoxPro
Catégorie:
Autre
Divers
Thread ID:
00149291
Message ID:
00153092
Vues:
50
>>* 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.
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform