Bryan - Gendev
Programmer
In the first step in my app I recombine a number of related tables into one large table with a lot of processing to determine the content of some of my special fields based on items in one or more of the tables. I do this in a Scan /Endscan of the main table containing the 'hooks' to the related tables.
As this process can take quite a while I would like to estimate the potential time the loop might take, much like Windows copy dialogues and others show.
It seems to me that I could measure the time taken for, say 10 records, and extrapolate for the last 90%. I do use a progress bar but with a large number of records its initial progress is minimal. Perhaps I could test after 20% and adjust the estimate.
Has anyone done anything like this or is there some code snippett somewhere to help me on my way?
Thanks in anticipation.
GenDev
As this process can take quite a while I would like to estimate the potential time the loop might take, much like Windows copy dialogues and others show.
It seems to me that I could measure the time taken for, say 10 records, and extrapolate for the last 90%. I do use a progress bar but with a large number of records its initial progress is minimal. Perhaps I could test after 20% and adjust the estimate.
Has anyone done anything like this or is there some code snippett somewhere to help me on my way?
Thanks in anticipation.
GenDev