Actually, if we want to be fancy, we may do the following:
Before doing a lengthy operation, like indexing or counting, minimize VFP and start a User's favorite game, like 'Soliter', for example. After operation is finished, immediately terminate the game and Maximize VFP. Your users would love this technique :)))
>I use SDT for recreating indexes, packing, etc. Anything else, I use a progress bar where feasible. Otherwise, I use a variation of your technique. :^)
>
>>My technique:
>>
>>USE mytable
>>WAIT WINDOW "The frigging computer is BUSY!" NOWAIT
>>INDEX ON myfield TO myindex.IDX
>>WAIT CLEAR
>>
>>:-)
>>
>>
>>
>>>Ok, I may use this technique, though it's not elegant. I also have another solution - Yuri Rubinov ProgBar. It works for Count or Replace, but doesn't work for Index On. From VFUG I also downloaded another ProgressBar, which does its work for indexing too, but it's an overkill for me. Take a look at them and you may find them useful in your applications.
If it's not broken, fix it until it is.
My Blog