Public Sub DoEventsSafe()
Dim lngTry As Long For lngTry = 1 To 10000000 Dim dblResult As Double dblResult = Sqr(lngTry) ' ... Other heavy-duty processing here. DoEventsSafe Next lngTrySee also:
DoEvents Statement (Visual Basic) ReadMe Topic (Visual Basic 4.0) Sleep Function (WIndows KERNEL32 API)v1.3 Change: Removed 16-bit support from this function.
Copyright 1996-1999 Entisoft
Entisoft Tools is a trademark of Entisoft.