Can you clear the contents of the immediate/debug within the VB code. I know you can do debug.print to display but i want to clear the contents before. Any suggestions???
Thanks
Printable View
Can you clear the contents of the immediate/debug within the VB code. I know you can do debug.print to display but i want to clear the contents before. Any suggestions???
Thanks
I have actually submitted a suggestion to Microsoft that a
Debug.Clear should be made available, but as of VB6, it is not, and I've never found a programmatic way of clearing the immediately window.
There's a freeware add-in here that does it http://k-offline.com/mz-tools/mztools2_eng.htm
You'll be able to do this in VB.NET, I believe. Right now, the only way is really cheap (other than an addin):
VB Code:
Dim i As Integer For i = 1 to 100 Debug.Print "" Next i
Really cheap. :rolleyes:
That doesn't work Arien, it just prints 100 zero-length strings after anything that's already in it.
And what did I tell you about integers/longs!?! ;)
VB Code:
Dim i As Long For i = 1 to 100 Debug.Print " " Next i
It should. Print also spits out a newline. But if you want to be anal, you can make it print a vbCrLf instead.
thanks chrisjk for that tool, it is very useful indeed.