Solved

Clearing immediate window with code (VB6)

Posted on 2003-12-03
6
642 Views
Last Modified: 2008-02-01
I still haven't worked out how to do this.  Anyone know?


Thanks.
0
Comment
Question by:SilentBob
  • 2
  • 2
  • 2
6 Comments
 
LVL 1

Expert Comment

by:josephfluckiger
ID: 9871977
I've never found a with a clearscreen command, but hey if you can't beat em, join em, fight fire with fire yada yada yada...

    Dim f As Integer
    For f = 1 To 50
        Debug.Print vbCrLf & vbCrLf & vbCrLf & vbCrLf & vbCrLf
    Next f

This loops through and prints a 5 blank lines to the debug window 100 times, until all the contents are scrolled off the screen. It works as long as the cursor is at the bottom of the screen.

0
 

Author Comment

by:SilentBob
ID: 9871998
yeah, I've seen that trick before, but don't really like it.  My cursor is generally not at the bottom of the screen, and if I'm gonna move it manually, I may as well clear the screen by hand too.  Plus, the cursor ends up at the bottom of the screen instead of at the start.  Thanks anyway.

0
 
LVL 9

Accepted Solution

by:
Dang123 earned 50 total points
ID: 9874131
SilentBob,
    This sounds like what your asking for.

"This is an article that goes through the steps necessary to create a VB6 Add-In that will clear the immediate window at the click of a button."
http://www.vb-faq.com/Articles/Fresle/addins.asp

Dang123


0
Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

 
LVL 1

Expert Comment

by:josephfluckiger
ID: 9909176
Dang123,

The VBcode helper app that I found at the bottom of your article was a big help. http://www.vbcodehelper.com

It lets you count the lines of code in your app, clear the immediate window, auto-set tab order of your controls etc. It's a super tool. It costs $59, but I think I might bite the bullet and buy it.

thx,

Joe
0
 

Author Comment

by:SilentBob
ID: 9909220
Thanks for the help guys.
0
 
LVL 9

Expert Comment

by:Dang123
ID: 9919794
Glad I could help, thanks for the A!
0

Featured Post

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
countPairs challenge 7 68
C Programming - If Statement 8 72
Adding Namespace to the second node of the xml 16 65
detecting  the added row index in a datagridview 3 62
Since upgrading to Office 2013 or higher installing the Smart Indenter addin will fail. This article will explain how to install it so it will work regardless of the Office version installed.
This is about my first experience with programming Arduino.
An introduction to basic programming syntax in Java by creating a simple program. Viewers can follow the tutorial as they create their first class in Java. Definitions and explanations about each element are given to help prepare viewers for future …
In this seventh video of the Xpdf series, we discuss and demonstrate the PDFfonts utility, which lists all the fonts used in a PDF file. It does this via a command line interface, making it suitable for use in programs, scripts, batch files — any pl…

863 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

20 Experts available now in Live!

Get 1:1 Help Now