473,386 Members | 1,708 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,386 software developers and data experts.

C# Immediate Window Nightmare

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 breakpoint on it, when i debug the application and it goes
into that break, I goto immediate window and type
?MyString
it shows abc.doc
but when I want to test for something else like
?MyString.ToUpper() or ?MyString.ToUpper()
it gives error
error: managed EE does not understand expression's syntax

I have tried this in VB.NET and there is nooooooo problem at all. But
it is not working in csharp. Please let me know how to deal with it. I
need to use immediate window to evaluate certain expressions/methods at
run time.

Thanks in advance.

Raqib (ra**********@hotmail.co.uk)

Apr 14 '06 #1
2 3660
Hello raqib,

just time "immed" to go in immediate mode.
for more details :
http://msdn2.microsoft.com/en-us/lib...hy(VS.80).aspx

Vincent.

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 breakpoint on it, when i debug the application and it
goes
into that break, I goto immediate window and type
?MyString
it shows abc.doc
but when I want to test for something else like
?MyString.ToUpper() or ?MyString.ToUpper()
it gives error
error: managed EE does not understand expression's syntax
I have tried this in VB.NET and there is nooooooo problem at all. But
it is not working in csharp. Please let me know how to deal with it. I
need to use immediate window to evaluate certain expressions/methods
at run time.

Thanks in advance.

Raqib (ra**********@hotmail.co.uk)

Apr 14 '06 #2
I just type what I want (didn't know of ?, > and so on)

MyString
MyString.ToUpper()
MyString[0]

return the string, the upper cased string and the the first character of the
string as int and char.

Andrew
Apr 15 '06 #3

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

Similar topics

2
by: Dave | last post by:
I'm getting different results when I display a value in the Output window as opposed to the Immediate window. Why? Code to recreate problem: 'Purpose: Get different results from Output...
2
by: Jon Davis | last post by:
How do I get the Immediate window back? It seems to be gone. Command window doesn't work. "View" menu items don't seem to show it Jon
3
by: Russell Stevens | last post by:
Can anyone tell me how to get to the immediate window in VS2005. The help file says (when debugging) to click Debug, Windows, Immediate. There is no Immediate window listed there, nor anywhere else...
5
by: vul | last post by:
In VB6 I used to use Immediate Window to get or change values of variables. It is very convenient while debugging. I used drag and drop operation to paste the variable name into Immediate Window....
2
by: dgk | last post by:
Using VS2005 Standard Edtion, I have an Immediate window during ASP debugging. My co-worker, using VS2005 Team Edtion does not have an Immediate window. He does have a Command window, which is sort...
6
by: Frank Rizzo | last post by:
I am using the Immediate Window a lot to see the progress of the application. In VS2003, if your cursor was at the very bottom, the window would scroll down whenever something new showed up. If...
4
by: Armin Zingler | last post by:
Hi, I feel fooled.. In the immediate window, if I enter ? DateTime.Now.Kind I get "Unspecified {0}". The result - I expected "local" - lead to some time consuming deliberations. Today, I...
4
by: mgfine | last post by:
We're new to using VB 9 and we cannot invoke an immediate command window from an immediate window. Typing >cmd in the immediate window does bring up a command window but we're looking for the...
0
by: mgfine | last post by:
This question was first posted in the VB forum: We're new to using VB 9 (Visual Studio.Net 2007) and we cannot invoke an immediate command window from an immediate window. Typing >cmd in the...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
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?
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
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
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.