HELP PLEASE (Lottery Program)

Tajiri17
02-22-2002, 07:28 AM
Hi,

I have attached My Program to this Message.

I need help on the 'Lottery3.frm'. I want the Lottery Numbers to appear one-by-one Instead of all drawing at once.

Also on 'Lottery2.frm' I am having difficulty storing entries made. Ideally I would like to store entries and then clear the form ready for someone else to come along and enter.

Download the Program and all the above should make some sense.

Thanks to anyone who can help out on these two problems.

Thanks
Tajiri.

Aviator
02-22-2002, 07:52 AM
What I would do is one of two things

1) Inside the loop, use the Sleep API

Private Declare Sub Sleep Lib "Kernel32" (ByVal dwMilliseconds as Long)

And then code a statement that is something like

Sleep 100 'milliseconds

The only downside is that your whole program sleeps and you lose control while this is happening.

2) Still inside the loop, create your own procedure andd call it in the loop, inside the procedure have a loop that goes through a few thousand times to delay the execution of the next line of code in the main procedure

Both of these are untested but should work 99%.

usetheforce2
02-22-2002, 08:01 AM
hey,

I've modified you code abit and put in a timer control. I only changed the ThunderBall routine. you can use the same format for the other random number routines.

EZ Archive Ads Plugin for vBulletin Copyright 2006 Computer Help Forum