Welcome to Dream.In.Code
Getting VB Help is Easy!

Join 136,454 VB Programmers for FREE! Get instant access to thousands of VB experts, tutorials, code snippets, and more! There are 1,965 people online right now. Registration is fast and FREE... Join Now!




nid help about the timer in VB6

 
Reply to this topicStart new topic

nid help about the timer in VB6, Continous Timer for calling a function

mint214
2 Aug, 2008 - 08:55 PM
Post #1

New D.I.C Head
*

Joined: 1 Aug, 2008
Posts: 5

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

User is offlineProfile CardPM
+Quote Post

DeCompile
RE: Nid Help About The Timer In VB6
2 Aug, 2008 - 09:17 PM
Post #2

D.I.C Head
**

Joined: 20 Jul, 2008
Posts: 180



Thanked: 6 times
My Contributions
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.
User is offlineProfile CardPM
+Quote Post

PsychoCoder
RE: Nid Help About The Timer In VB6
2 Aug, 2008 - 11:04 PM
Post #3

using DIC.Core;
Group Icon

Joined: 26 Jul, 2007
Posts: 8,993



Thanked: 125 times
Dream Kudos: 8625
Expert In: VB, VB.Net, C#, SQL, ASP, ASP.Net, Web Development, HTML, CSS, Win32 API, Javascript, mySQL, J#, Boo.Net

My Contributions
Dream.In.Code has a policy by which we prefer to see a good faith effort on your part before providing source code for homework assignments. Please post the code you have written in an effort to resolve the problem, and our members would be happy to provide some guidance. Be sure to include a description of any errors you are encountering as well.

Please post like this:

Thank you for helping us helping you.
User is offlineProfile CardPM
+Quote Post

Zhalix
RE: Nid Help About The Timer In VB6
3 Aug, 2008 - 02:04 AM
Post #4

D.I.C Head
**

Joined: 7 May, 2008
Posts: 218



Thanked: 9 times
My Contributions
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.
User is offlineProfile CardPM
+Quote Post

mint214
RE: Nid Help About The Timer In VB6
6 Aug, 2008 - 03:28 AM
Post #5

New D.I.C Head
*

Joined: 1 Aug, 2008
Posts: 5

QUOTE(Zhalix @ 3 Aug, 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.


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

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

User is offlineProfile CardPM
+Quote Post

Zhalix
RE: Nid Help About The Timer In VB6
6 Aug, 2008 - 07:25 AM
Post #6

D.I.C Head
**

Joined: 7 May, 2008
Posts: 218



Thanked: 9 times
My Contributions
Use an If Statement to check the question index, and display the appropriate question from that.

User is offlineProfile CardPM
+Quote Post

Fast ReplyReply to this topicStart new topic
Time is now: 12/2/08 03:14PM

Live VB Help!

VB Tutorials

Reference Sheets

VB Snippets

DIC Chatroom

Bye Bye Ads

Monthly Drawing

Thumb Drive

Top Contributors

Top 10 Kudos This Month