Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Memo Bloat ?
Message
From
05/10/2002 18:32:27
 
General information
Forum:
Visual FoxPro
Category:
Other
Title:
Miscellaneous
Thread ID:
00708044
Message ID:
00708130
Views:
10
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.
Previous
Reply
Map
View

Click here to load this message in the networking platform