nid help about the timer in VB6

Continous Timer for calling a function

Page 1 of 1

5 Replies - 1441 Views - Last Post: 06 August 2008 - 08:25 AM Rate Topic: -----

#1 mint214  Icon User is offline

  • New D.I.C Head

Reputation: 0
  • View blog
  • Posts: 7
  • Joined: 01-August 08

nid help about the timer in VB6

Post icon  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...^_^

Is This A Good Question/Topic? 0
  • +

Replies To: nid help about the timer in VB6

#2 DeCompile  Icon User is offline

  • D.I.C Regular

Reputation: 19
  • View blog
  • Posts: 301
  • Joined: 20-July 08

Re: nid help about the timer in VB6

Posted 02 August 2008 - 10:17 PM

It is a common element to prove any and all code that you have written towards this project.

You should read Before you post: number 2.

Quote: We won't do your homework for you.

Although many of us are more than willing to help.
Was This Post Helpful? 0
  • +
  • -

#3 PsychoCoder  Icon User is offline

  • Google.Sucks.Init(true);
  • member icon

Reputation: 1639
  • View blog
  • Posts: 19,853
  • Joined: 26-July 07

Re: nid help about the timer in VB6

Posted 03 August 2008 - 12:04 AM

[rules][/rules]
Was This Post Helpful? 0
  • +
  • -

#4 Zhalix  Icon User is offline

  • D.I.C Regular

Reputation: 20
  • View blog
  • Posts: 260
  • Joined: 07-May 08

Re: nid help about the timer in VB6

Posted 03 August 2008 - 03:04 AM

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.
Was This Post Helpful? 0
  • +
  • -

#5 mint214  Icon User is offline

  • New D.I.C Head

Reputation: 0
  • View blog
  • Posts: 7
  • Joined: 01-August 08

Re: nid help about the timer in VB6

Posted 06 August 2008 - 04:28 AM

View PostZhalix, on 3 Aug, 2008 - 03:04 AM, said:

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...

it just i don't know the procedure in doiung it...

i'll post the code in some other time...

have a nice day... ty for ur cooperation
^_^
Was This Post Helpful? 0
  • +
  • -

#6 Zhalix  Icon User is offline

  • D.I.C Regular

Reputation: 20
  • View blog
  • Posts: 260
  • Joined: 07-May 08

Re: nid help about the timer in VB6

Posted 06 August 2008 - 08:25 AM

Use an If Statement to check the question index, and display the appropriate question from that.
Was This Post Helpful? 0
  • +
  • -

Page 1 of 1