ST3VO
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
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
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
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
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
Perfect! Thanks a million :o)
What is in Edit1.Text?
What is triggering the 'countdown'?