Continous Timer for calling a function

nid help about the timer in VB6

Posted 02 August 2008 - 09:55 PM

I need help in the program that i want to create. I want to create a continous timer that
if ever a coundown timer reaches 0, it wil call a function (say function1) then reset
its value and then counts down again, then after the second countdown reaches 0,
it will call another function(say function2), and then resets for a third countdown and so on and so forth, until all the
functions is called.
(for let say 20 functions of more). Is it posible in VB6 to create
this kind of programing routine?If it it posible, i need help.

My program is a Quiz Bee Dispaly, where in every, lets say 15 secs, the initial question will
be changed and then the timer is return to 15 secs sec and when it reaches 0. another question will be dispalyed, and so on.

I hope someone will help me here,i'm just new in programming VB6, I only know just basics,
so really need your help guys...

Re: nid help about the timer in VB6

Well I can't give you any code until you show us what you've got so far, but what you asked is very possible.

Have you considered displaying the questions randomly instead of in a set order? Though you can certainly do either way.

If you're going with the set order method, then actually make two integer variables. One variable, the countdowner, will be set to 15 before the timer should be started. The other variable, the Question index, will be left at 0.

Simply make the countdowner count down to 0, and when it reaches 0, have it set itself back to 15 and increment one to the Question index.

After that, just check whatever number the Question index is currently on, and make it display the appropriate question based off of that.

Re: nid help about the timer in VB6

Well I can't give you any code until you show us what you've got so far, but what you asked is very possible.

Have you considered displaying the questions randomly instead of in a set order? Though you can certainly do either way.

If you're going with the set order method, then actually make two integer variables. One variable, the countdowner, will be set to 15 before the timer should be started. The other variable, the Question index, will be left at 0.

Simply make the countdowner count down to 0, and when it reaches 0, have it set itself back to 15 and increment one to the Question index.

After that, just check whatever number the Question index is currently on, and make it display the appropriate question based off of that.

i'm sorry for not reading the rules before i post my probelm, i'm so in
hurry that in did not have time to read the rules...hope for ur kind
consideratins...

im using the code that i have acquired in this site, its in the countdown
timer section...i'll post it maybe some other time...

as a reply in this post...
tnx for ur idea, but in some sort i can't still make my program stable...
the problem is after the 1st countdown timer reaches zero, its calls the
1st function i have assigned. but after the second countdown timer, it
doesn't call the 2nd fuintion that i've assigned...