# ProgressBar + Gauge

Hi all;

As far as I know, in order to be able to use a gauge or a progress bar, we should roughly know beforehand the number of steps of the code or the process that will be executed.

But I have an algorithm that finishes when a real number converges to some desired value, that is, i cannot estimate the number of steps that will be executed beforehand. Can I still make use of a Gauge or a Progress Bar?

• Hi. You don't know the number of steps, but you _can_ display the difference between current and desired as a percentage. The smaller the difference, the closer the gauge gets to 100%.

hth, pritaeas

: But I have an algorithm that finishes when a real number converges to
: some desired value, that is, i cannot estimate the number of steps
: that will be executed beforehand. Can I still make use of a Gauge or
: a Progress Bar?
• : Hi all;
:
: As far as I know, in order to be able to use a gauge or a progress bar, we should roughly know beforehand the number of steps of the code or the process that will be executed.
:
: But I have an algorithm that finishes when a real number converges to some desired value, that is, i cannot estimate the number of steps that will be executed beforehand. Can I still make use of a Gauge or a Progress Bar?
:
:
** i think it's better to use the gaug frequency better than position

• Could you please explain it in a little bit detail?
Thanx

: : Hi all;
: :
: : As far as I know, in order to be able to use a gauge or a progress bar, we should roughly know beforehand the number of steps of the code or the process that will be executed.
: :
: : But I have an algorithm that finishes when a real number converges to some desired value, that is, i cannot estimate the number of steps that will be executed beforehand. Can I still make use of a Gauge or a Progress Bar?
: :
: :
: ** i think it's better to use the gaug frequency better than position
:

• :
: Could you please explain it in a little bit detail?
: Thanx
:
: : : Hi all;
: : :
: : : As far as I know, in order to be able to use a gauge or a progress bar, we should roughly know beforehand the number of steps of the code or the process that will be executed.
: : :
: : : But I have an algorithm that finishes when a real number converges to some desired value, that is, i cannot estimate the number of steps that will be executed beforehand. Can I still make use of a Gauge or a Progress Bar?
: : :
: : : Thanx in advance.
: : :
: : ** i think it's better to use the gaug frequency better than position
: :
:
:
Ok here is an exemple :

with timer :
--- procedure // timer ( on timer event ) ---
begin
progressbar1.position :=timer1.interval / 1000 { just an exemple }

end ;

but for more detail give your unite so that i can help you more ( with Tprogresbar }

see letter