|
-
Aug 24th, 2001, 08:47 AM
#1
clearing debug/immediate window
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
-
Aug 24th, 2001, 08:53 AM
#2
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.
-
Aug 24th, 2001, 08:56 AM
#3
PowerPoster
-
Aug 24th, 2001, 08:58 AM
#4
Member
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.
-
Aug 24th, 2001, 09:04 AM
#5
PowerPoster
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!?!
-
Aug 24th, 2001, 09:07 AM
#6
Member
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.
-
Aug 24th, 2001, 09:09 AM
#7
thanks chrisjk for that tool, it is very useful indeed.
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
|