Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Memo Bloat ?
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Autre
Titre:
Divers
Thread ID:
00708044
Message ID:
00708108
Vues:
9
George,
Here's the basic idea of pre-padding to prevent "memo bloat":
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
I was just wondering if this was common knowledge (with lots of examples) or new ground?

>>Any good examples for dealing with the "memo bloat" problem? I'm specifically looking for more info about the pre-padding technique that keeps the memo size to a minimum and avoids the allocation of more space as values are added to the memo.
>
>Claude,
>
>I don't know of any good examples in this area, however, but PACK MEMO will remove the unused space.
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform