Link to home
Start Free TrialLog in
Avatar of ST3VO
ST3VOFlag for United Kingdom of Great Britain and Northern Ireland

asked on

Reverse Countdown

Hi Experts,

I am trying to do the following but no luck yet! Hope you can help!

Using a progressbar I am setting the position to a countdown from Edit1.text.

So I've created an Integer Variable and Assigned it to the Initial Number, which I've also set as the
progressbar .max.

Do basically everytime something happens it's counting down.

Now, what I need to do is have another variable that will count up everytime the edit counts down
so I can assign that variable to the progressbar position.

I hope this makes sense to you ;o)

How could I do this please?

Thanks

ST3VO
Avatar of MerijnB
MerijnB
Flag of Netherlands image

I don't understand your question.

What is in Edit1.Text?
What is triggering the 'countdown'?
Avatar of ST3VO

ASKER

The countdown is the ListView.items.count

Then it goes through a loop and everytime to in loops it counts the number of lines left in the listview.

I've put the countdown to show in a TEdit.

Suppose the initial ListView count is 150

Then I've assigned to progressbbar.max position to 150

I don't want to progressbar to go from 150 to 0

I need it to go from 0 to 150

So I want to somehow, assign another variable that will Increment everytime the value of the
countdown descreases.

Hope this helps :o)

Thanks

ST3VO
ASKER CERTIFIED SOLUTION
Avatar of MerijnB
MerijnB
Flag of Netherlands image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of ST3VO

ASKER

Perfect! Thanks a million :o)