OldCompatible = set("COMPATIBLE") SET COMPATIBLE on use c:\temp\test *CREATE TABLE c:\temp\test (Mem M) *APPEND BLANK *flush() *?"after append blank:" + str(fsize("c:\temp\test.fpt")) REPLACE Mem WITH SPACE(100000) && pre-allocate flush() ?"after pre-allocate:" + str(fsize("c:\temp\test.fpt")) FOR i = 1 TO 1000 REPLACE Mem WITH STUFF( Mem, 1+ 100 * (i-1), 100, PADR( REPLICATE( TRANSFORM( i), 100), 100)) ENDFOR flush() ?"after replace :" + str(fsize("c:\temp\test.fpt")) USE SET COMPATIBLE &OldCompatible>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 >>