Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Memo Bloat ?
Message
De
05/10/2002 18:32:27
 
Information générale
Forum:
Visual FoxPro
Catégorie:
Autre
Titre:
Divers
Thread ID:
00708044
Message ID:
00708130
Vues:
11
Claude,

From what I've always heard, memo bloat can't be avoided (that way anyway).


>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
Répondre
Fil
Voir

Click here to load this message in the networking platform