• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 233
  • Last Modified:

Break

I'm using Visual Basic 6.0 Professional Edition.

I'd like to know what is the easiest way to create a fifteen second's break to my program?

Give me an example.


Thanks in advance!
0
jjylonen
Asked:
jjylonen
  • 2
1 Solution
 
deightonCommented:
dim x

x = now
while datediff("s",x,now) < 15
doevents
wend
0
 
deightonCommented:
or using api

in a .bas module
Declare Sub Sleep Lib "kernel32" Alias "Sleep" (ByVal dwMilliseconds As Long)


then

sleep(15000)
0

Featured Post

Free Tool: Port Scanner

Check which ports are open to the outside world. Helps make sure that your firewall rules are working as intended.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

  • 2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now