command window / immed window  
Author Message
rebconline





PostPosted: Sun Apr 04 04:08:32 CDT 2004 Top

Dotnet >> command window / immed window

hi
i have this piece of code but it never shows the ex.tostring in the command
or immed window.
how do i see it?

this is in a class

public void getTeachers()
{
try
{
PermTeacher p =new PermTeacher ();
p.name = "teacher1";
arrTeachers.Add (p);
if (arrTeachers !=null)
Console.WriteLine(this.arrTeachers.Count); //how can i see this?
}
catch(Exception ex)
{
Console.WriteLine(ex.ToString());
}
}

DotNet124  
 
 
Gawel





PostPosted: Sun Apr 04 04:08:32 CDT 2004 Top

Dotnet >> command window / immed window > public void getTeachers()
> {
> try
> {
> PermTeacher p =new PermTeacher ();
> p.name = "teacher1";
> arrTeachers.Add (p);
> if (arrTeachers !=null)
> Console.WriteLine(this.arrTeachers.Count); //how can i see this?
> }
> catch(Exception ex)
> {
> Console.WriteLine(ex.ToString());
> }
> }

That's strange, did you figure out what is going on ?

Gawel


 
 
phoenix





PostPosted: Sun Apr 04 04:20:37 CDT 2004 Top

Dotnet >> command window / immed window Not 100% sure if I understand you. But isn't Console.... supposed to write
out to the console? Try Debug.WriteLine (Diagnostics namespace) to write to
the other windows

Yves



> hi
> i have this piece of code but it never shows the ex.tostring in the
command
> or immed window.
> how do i see it?
>
> this is in a class
>
> public void getTeachers()
> {
> try
> {
> PermTeacher p =new PermTeacher ();
> p.name = "teacher1";
> arrTeachers.Add (p);
> if (arrTeachers !=null)
> Console.WriteLine(this.arrTeachers.Count); //how can i see this?
> }
> catch(Exception ex)
> {
> Console.WriteLine(ex.ToString());
> }
> }
>
>


 
 
Gawel





PostPosted: Sun Apr 04 05:02:08 CDT 2004 Top

Dotnet >> command window / immed window > Not 100% sure if I understand you. But isn't Console.... supposed to write
> out to the console?

I am using Console.WriteLine all the time and I have no problem.

Gawel


 
 
Gary





PostPosted: Sun Apr 04 04:58:48 CDT 2004 Top

Dotnet >> command window / immed window Hi Juzan,

The console output is directed to the 'Output' window (CTRL+ALT+A) in the
IDE and not the command or immediate windows.

Gary



> hi
> i have this piece of code but it never shows the ex.tostring in the
command
> or immed window.
> how do i see it?
>
> this is in a class
>
> public void getTeachers()
> {
> try
> {
> PermTeacher p =new PermTeacher ();
> p.name = "teacher1";
> arrTeachers.Add (p);
> if (arrTeachers !=null)
> Console.WriteLine(this.arrTeachers.Count); //how can i see this?
> }
> catch(Exception ex)
> {
> Console.WriteLine(ex.ToString());
> }
> }
>
>