Article ID: 113031
Article Last Modified on 10/29/2003
Sub Command1_Click ()
Dim ctr As Long
Dim ActControl As control
Do
ctr = ctr + 1
Text1.Text = ctr
' Use a temporary object variable
Set ActControl = Screen.ActiveControl
If ActControl Is Command1 Then
End If
Loop
End Sub
This code should run indefinitely.
Sub Command1_Click ()
Dim ctr As Long
Do
ctr = ctr + 1
Text1.Text = ctr
If Screen.ActiveControl Is Command1 Then
End If
Loop
End Sub
Additional query words: buglist3.00 3.00 MemLeak fixlist4.00
Keywords: kbbug kbfix KB113031