I wanted to know if there is an implement of timeout on VB6.
I have some function Do(), Can I call this method with timeout?
something like:
Call(Do, 5);
that will quit after 5 seconds.
Do() function is not my it so I can’t change it.
Thanks!
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
Yes you can. You have to create a background worker, implement a sleep (5000) then terminate the background process. You can take a look here http://msdn.microsoft.com/en-us/library/aa719109(v=vs.71).aspx