RE: Output Window
- From: Greg <AccessVBAnet@xxxxxxxxxxxxxxxxx>
- Date: Fri, 18 Apr 2008 11:30:02 -0700
OK, that is probably it. I'm studying for Microsoft Exam and it instructs me
to create a console applicaiton for each Exercise, but I'm justing doing all
of it in one Windows Applicaiton instead to build on common project with all
my examples to review.
I suspect I should probably be using the Debug statement instead, right?
Thanks.
"Family Tree Mike" wrote:
I suspect your application is compiled as a windows application rather than a.
console application. Do you need to run as a windows application?
"Greg" wrote:
I have used the Console.Clear method, but it gives me a "The Handle is
Invalid" error message. It doesn't appear in my ERROR window, so I'm not
understanding why this won't work. Any suggestions? I am using like in the
following lines of code.
Public Sub DirFiles()
Dim ourDir As System.IO.DirectoryInfo = New
System.IO.DirectoryInfo("C:\VBTEST")
Console.Clear()
Console.WriteLine("Directory: {0}", ourDir.FullName)
Dim myFile As System.IO.FileInfo
For Each myFile In ourDir.GetFiles
Console.WriteLine("File: {0}", myFile.FullName)
Next myFile
Console.WriteLine("Root: {0}", ourDir.Root)
End Sub
Do you see anything wrong that would cause the Console.Clear method not to
work?
Thanks, Greg
"kimiraikkonen" wrote:
Greg,
In this hello world console application, clear function clears "hello world"
line properly. Then you must look at your code again:
Module Module1
Sub Main()
Console.WriteLine("hello world")
Console.Clear()
' Pause
Console.ReadLine()
End Sub
End Module
HTH,
Onur
"Greg" wrote:
I am using the following command to output my results to the Output window
(for testing things out).
Console.WriteLine ("Output")
I'd like to clear the Output window of any previous output. I tried
Console.Clear
but, this results in an error.
Is there a way to clear previous output text in the Output Window?
- Follow-Ups:
- RE: Output Window
- From: Linda Liu[MSFT]
- RE: Output Window
- From: Family Tree Mike
- RE: Output Window
- References:
- Output Window
- From: Greg
- RE: Output Window
- From: kimiraikkonen
- RE: Output Window
- From: Greg
- RE: Output Window
- From: Family Tree Mike
- Output Window
- Prev by Date: Problems Showing Main Form after Hide
- Next by Date: RE: Output Window
- Previous by thread: RE: Output Window
- Next by thread: RE: Output Window
- Index(es):
Relevant Pages
|