|
-
Apr 9th, 2000, 10:37 PM
#1
Thread Starter
New Member
Random Timer ?
Hi
How can Ihave an Random Timer ?
like Timer1.Interval = " here a Random Number "
One more I need al list of all WIndowshandles how do I get this ?
thx
Alex
[Edited by mezzo on 04-10-2000 at 11:44 AM]
-
Apr 9th, 2000, 10:43 PM
#2
Fanatic Member
Random Timer
This will give you a random number between 0 and 100.
Code:
Randomize
Timer1.Interval = Int(Rnd * 100)
No Worries
Iain.
-
Apr 9th, 2000, 10:47 PM
#3
Thread Starter
New Member
Random timer ?
Thx for Ur answer does this timer Change during the program ?
Because I need a Timer that changes during the Programm
thanks
alex
-
Apr 9th, 2000, 10:51 PM
#4
Fanatic Member
If you want the time interval to change during the program there are a couple of ways to fo it.
1. When something happens like a button is clicked, place the previous code i gave you into the event.
2. Or place the code into the timer event of the timer so that every time the event is fired it chooses a different interval for the timer.
-
Apr 9th, 2000, 10:56 PM
#5
Thread Starter
New Member
Thx
Thx didnt think taht works
alex
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|