Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Small adjustment needed on recycle approach
Message
De
07/05/2003 17:29:42
 
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Divers
Thread ID:
00785663
Message ID:
00786027
Vues:
20
>I wish there was a good way. Pre-padding is one way, but, I think you still need exclusive access. Here's an example of using a memo without growing it:
>
>CREATE TABLE c:\temp\test (Mem M)
>APPEND BLANK
>REPLACE Mem WITH SPACE(100000)  && pre-allocate
>FOR i = 1 TO 1000
>  REPLACE Mem WITH STUFF( Mem,  1+ 100 * (i-1), 100, PADR( REPLICATE( TRANSFORM( i), 100), 100))
>ENDFOR
>USE
>
Pre-allocating space will in some cases makes your file bigger than what I have now. I also cannot afford to go exclusive everything I make a change in that file. Basically, I do one write every two seconds in a specific file having a memo field. So, I guess this has to be resolved once and for all at the product level.
Michel Fournier
Level Extreme Inc.
Designer, architect, owner of the Level Extreme Platform
Subscribe to the site at https://www.levelextreme.com/Home/DataEntry?Activator=55&NoStore=303
Subscription benefits https://www.levelextreme.com/Home/ViewPage?Activator=7&ID=52
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform