473,387 Members | 1,812 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,387 software developers and data experts.

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());
}
}
Jul 21 '05 #1
4 1587
> 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
Jul 21 '05 #2
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

"juzan" <ch***@hotmail.com> schreef in bericht
news:ur**************@TK2MSFTNGP09.phx.gbl...
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());
}
}

Jul 21 '05 #3
> 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
Jul 21 '05 #4
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

"juzan" <ch***@hotmail.com> wrote in message
news:ur**************@TK2MSFTNGP09.phx.gbl...
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());
}
}

Jul 21 '05 #5

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

0
by: Tom Dacon | last post by:
"Open .Net Command Window Here" context menu for Windows Explorer: The reg file described below adds a new menu item to Windows Explorer's context menu when you right-click over a folder (or the...
4
by: juzan | last post by:
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
2
by: hleewood | last post by:
I'm using VS 2003, VB.Net. For no apparent reason the Command Window no longer functions. It doesn't auto-complete and doesn't recognize any syntax.
2
by: frazer | last post by:
hi sometimes when i execute some commands in the immed window, it says, identifier out of scope. what am i doing wrong. eg n1.Security.SecurityAccessRights.None security is a class in...
4
by: Flip | last post by:
When I'm trying to debug an app in VS, I'm trying to get the value of a variable by typing out a question mark and then the variable name. But when I do that I get an error from the Output Window....
3
by: Chris Lane | last post by:
Hi, Stupid question here but I get the following error when debugging: 'debug.writeline' is not declared or the module containing it is not loaded in the debugging session. I can however use...
2
by: raqib.rafique | last post by:
The immediate window in Vs.NET is giving me problems when i use it with C#. Simple example is I have the following line of code in a function String MyString = "abc.doc"; Then I put a...
1
by: =?Utf-8?B?cm9kY2hhcg==?= | last post by:
hey all, i'm the immediate window debugging my javascript and got the following: ?list {...} list is an array, can someone please tell me what do i do with this? thanks, rodchar
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.