>I've read all there is to read about packing and how it forces a grid reconstruction. I don't want to use "set deleted". This, notwithstanding, if I create a custom grid, in this case creating a click event in text1, then I "pack" which forces the grid to reconstruct, if I call the .grid.init a second time:
>
Instead of packing you can do
lc_alias = ALIAS()
SELECT * FROM (lc_alias) WHERE NOT DELETED() AND .t. ;
INTO CURSOR ac_del
SELECT (lc_alias)
ZAP
APPEND FROM DBF('ac_del')
USE IN ac_del
I assume you have exclusive use of the file since you can pack. Zap will not clear the grid like pack will. The and .t. is to make sure we don't just get a filter table result for the cusor.
Charles
"The code knows no master." - Chuck Mautz
"Everybody is ignorant, only on different subjects." - Will Rogers