|
-
Apr 2nd, 2013, 03:13 PM
#5
Re: Can I trust in this function?
The DoEvents() function lived on in VB6 for a reason, sometimes it is necessary.
However most of the reasons people use it are incorrect. It is only really safe in certain circumstances for a few specific purposes. Because a newb will reach for it far too often (and then come back posting a question about why their programs blow up, lose data, corrupt data, etc.) a DoEvents is evil mantra came about.
The VB6 manuals (and the soft copy contained in the MSDN Library CDs providing VB6's online Help) discuss DoEvents and the preferred alternatives in several chapters.
So choosing whether to use it or not depends entirely on where and why you are considering using it. There is no simple answer, and why would you expect there to be one? Programming isn't a cookbook endeavor.
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
|