Go Premium for a chance to win a PS4. Enter to Win

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 651
  • Last Modified:

Clearing immediate window with code (VB6)

I still haven't worked out how to do this.  Anyone know?


Thanks.
0
SilentBob
Asked:
SilentBob
  • 2
  • 2
  • 2
1 Solution
 
josephfluckigerCommented:
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
 
SilentBobAuthor Commented:
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
 
Dang123Commented:
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
Independent Software Vendors: We Want Your Opinion

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

 
josephfluckigerCommented:
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
 
SilentBobAuthor Commented:
Thanks for the help guys.
0
 
Dang123Commented:
Glad I could help, thanks for the A!
0

Featured Post

Free Tool: SSL Checker

Scans your site and returns information about your SSL implementation and certificate. Helpful for debugging and validating your SSL configuration.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

  • 2
  • 2
  • 2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now