The only way I know to accomplish this is by using a UDF in a FOR clause (that always returns .T.) to update your progress bar:
Copy to myTable for MyUDF()
Index on MyField for MyUDF() tag MyTag (of course this kinda dirties your index a bit)
Pack for myUDF() (Just kidding! -- your only alternative here is to use another method of removing deleted records)
>I work with large tables clear up to the 2Gb limit, dialed in to client sites and running processes remotely, including bulk processes such as pack, reindex, copy etc. These take a long time on big files/slow networks and I need a visual progress indicator, not just for me to monitor the status, but to indicate to onsite staff that there is an active process currently running!!
>
>Obviously, progress bars that require manual updates would never work. So I tried using ZTHERM and setting the auto update expression to:
>
>('RECNO()/RECCOUNT()*100',1)
>
>But it doesn't seem to update while a bulk process is running. I know that VFP keeps track internally of where it is in these bulk processes because it updates the numbers shown in the status bar. But I can't find a SYS() or anything else that contains these displayed values where I can trap them. But more than that, I KNOW there is some kind of internal progress bar class that works within bulk processes because it will pop up when I MODI STRU on a big table, saying RECORDS ADDED, REINDEXING, PACKING MEMO FILE, etc. and showing a moving percent-complete bar. This is precisely what I want to implement.
>
>Any tips on accessing this internal class, or info on any 3rd party stuff that can do this, will be most appreciated!
kenweber
GCom2 Solutions
Microsoft Certified Professional