>Hi everybody,
>
>I have a Global Replace form. In this form user may write a FOR condition. I then run a SCAN FOR command to do replace...
>
>I'm thinking about adding a progress bar... However, I don't want to count number of records prior to executing this command.
>
>I'm wondering, what can you advise here? Do you think, it would not be a much of confusion, if I would just use total number of records in the file to set maximum value of the progress bar?
>
>Thanks in advance.
Nadya,
If you do not want to count the records and still want the progress bar, you may scan all, update the therm and skip the records you do not want to process
I use this technique sometimes
local n, t
t = therm(reccounct(), '...')
n = 0
scan all
n = n + 1
=t.Update(n)
if( !Record_I_want_to_process )
loop
endif
endscan
Gregory