Delphi Pascal Question

Daniel A-S

Member
Hi.

Basically what I want is a timer with an interval of 3000 to control a progress bar, as the timer counts up to 750, the progress bar moves up 25/100, as the timer counts up 1500, the progress bar moves up to 50/100 e.t.c.

At the moment I've got it like this:

begin
if Timer1.interval >= 0 < 750
then ProgressBar1.position := 25;
if Timer1.interval >= 750 < 1500
then ProgressBar1.position := 50;
if Timer1.interval >= 1500 < 2250
then ProgressBar1.position := 75;
if Timer1.interval <= 3000
then ProgressBar1.position := 100
end;

Any help appreciated.
Thanks.
 
i dont know the language your prgoramming in but i can use common sense and look at it, if usual syntax structure applies then that looks very plausable. Is there a problem with it or are you just trying to see waht would work...??

Ooooh, look at that, swanley, i live in rochester, lol, small world hey...

dragon
 
Back
Top