Solved

Clearing immediate window with code (VB6)

Posted on 2003-12-03
6
641 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
Comment Utility
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
Comment Utility
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
Comment Utility
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
What Security Threats Are You Missing?

Enhance your security with threat intelligence from the web. Get trending threat insights on hackers, exploits, and suspicious IP addresses delivered to your inbox with our free Cyber Daily.

 
LVL 1

Expert Comment

by:josephfluckiger
Comment Utility
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
Comment Utility
Thanks for the help guys.
0
 
LVL 9

Expert Comment

by:Dang123
Comment Utility
Glad I could help, thanks for the A!
0

Featured Post

Do You Know the 4 Main Threat Actor Types?

Do you know the main threat actor types? Most attackers fall into one of four categories, each with their own favored tactics, techniques, and procedures.

Join & Write a Comment

Suggested Solutions

Title # Comments Views Activity
withoutTen challenge 14 88
c# combobox autocomplete behavior 6 92
word0 challenge 4 52
Currency Conversion? 1 34
This article is meant to give a basic understanding of how to use R Sweave as a way to merge LaTeX and R code seamlessly into one presentable document.
This article will show, step by step, how to integrate R code into a R Sweave document
Viewers will learn how to properly install Eclipse with the necessary JDK, and will take a look at an introductory Java program. Download Eclipse installation zip file: Extract files from zip file: Download and install JDK 8: Open Eclipse and …
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…

743 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

16 Experts available now in Live!

Get 1:1 Help Now