Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Complement to CreateBinary()
Message
De
15/07/2000 06:36:47
Cetin Basoz
Engineerica Inc.
Izmir, Turquie
 
Information générale
Forum:
Visual FoxPro
Catégorie:
Autre
Divers
Thread ID:
00241273
Message ID:
00392848
Vues:
11
Yes filetostr() and strtofile() might be faster. But it's only supported with 6.0 and up.
Cetin

>Wouldn't something with filetostr() be faster? In the premier issue of CoDE magazine there are all kinds of land speed records set with VFP arrays and filetostr().
>
>
>
>
>>String concat. is painfully slow in Fox. I try to mimic C way (but not in memory) for such things. I cannot use memory as a stream but a file :
lcTempFile = "X"+sys(2015)+".tmp"
>>lnHandle = fcreate(lcTempFile)
>>lnElems = alen(myArray,1)
>>for ix = 1 to lnElems
>>   =fwrite(lnHandle,myArray[ix,1])
>>endfor
>>lnSize = fseek(lnHandle,0,2)
>>= fseek(lnHandle,0,0)
>>lcStr=fread(lnHandle,lnSize)
>>=fclose(lnHandle)
>>erase (lcTempFile)
Cetin
Çetin Basöz

The way to Go
Flutter - For mobile, web and desktop.
World's most advanced open source relational database.
.Net for foxheads - Blog (main)
FoxSharp - Blog (mirror)
Welcome to FoxyClasses

LinqPad - C#,VB,F#,SQL,eSQL ... scratchpad
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform