Re: idhttp Post Progress

Giganews Newsgroups
Subject: Re: idhttp Post Progress
Posted by:  Remy Lebeau (TeamB) (no.spam@no.spam.com)
Date: Wed, 18 Jan 2006

"Lance Ras" <lan…@cdesoftware.com> wrote in message
news:434A3CA7F1E9E240lan…@cdesoftware.com...

> How can I do a progress meter on this?

You already know the answer to that, because you are already doing it.

> Progress.position := 0;
> Progress.Max:=AWorkCountMax;

You are not differentiating between reading and writing.  You should be
looking at the AWorkMode parameter and only updating your ProgressBar when
the AWorkMode is wmWrite.  Also, you should check to see if AWorkCountMax is
zero nor not.  When zero, the max count is not known ahead of time, and your
ProgressBar won't work properly since you set the Max to zero.

Gambit

Replies

In response to

idhttp Post Progress posted by Lance Ras on Wed, 18 Jan 2006