NasibKalsi
Programmer
Hello all
I found by accident that when I replace Memo field in a table it does not bloat anymore. I tried many replace statements but the size remain the same. I want to compress my *.scx forms so that compiler will produle smaller .exe file. It turned out that when the table is open in exclusive mode, it does not bloat. But if it is open in shared mode the table will bloat with each replace statement and requires pack to bring back to the actual size.
i hope, it may be helpful to someone.
my best
nasib
I found by accident that when I replace Memo field in a table it does not bloat anymore. I tried many replace statements but the size remain the same. I want to compress my *.scx forms so that compiler will produle smaller .exe file. It turned out that when the table is open in exclusive mode, it does not bloat. But if it is open in shared mode the table will bloat with each replace statement and requires pack to bring back to the actual size.
Code:
* No Bloating (code below)
* filename - any dbf file with at least one memo field in it
* bigfile.dbf - any file on your pc
use filename in 0 alias workspace1 exclusive
select workspace1
replace memofield with filetostr("bigfile.dbf")
dir filename.fpt
* At this point chek the file size
replace memofield with filetostr("bigfile.dbf")
dir filename.fpt
* the file size remains the same
* now try the same 6 statement above, without the reserve word 'exclusive'
* you will see that the file will bloat when you issue the replace statement
i hope, it may be helpful to someone.
my best
nasib