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

Command window in C# sucks

Hi there, I'm totally lost on why command window in C# can not run this :

?intA.toString()

It's simple ,right ? but IDE give me a error "error: 'intA.ToString' does
not exist".

I know there are two mode, and the question is not about this, also I feel
very supprised that there are also some silimair questions posted with no
answer at all.

Maybe somebody here can share some light.
Nov 17 '05 #1
10 4639
is .toString() an actual method or function of intA, or did you mean
".ToString()"? In C# capitalization counts.

"walter" <ww*@morneausobeco.com> wrote in message
news:BE**********************************@microsof t.com...
Hi there, I'm totally lost on why command window in C# can not run this :

?intA.toString()

It's simple ,right ? but IDE give me a error "error: 'intA.ToString' does
not exist".

I know there are two mode, and the question is not about this, also I feel
very supprised that there are also some silimair questions posted with no
answer at all.

Maybe somebody here can share some light.

Nov 17 '05 #2
It's a typo. It's ToString() function from dotnet framework.

"Michael C#" wrote:
is .toString() an actual method or function of intA, or did you mean
".ToString()"? In C# capitalization counts.

"walter" <ww*@morneausobeco.com> wrote in message
news:BE**********************************@microsof t.com...
Hi there, I'm totally lost on why command window in C# can not run this :

?intA.toString()

It's simple ,right ? but IDE give me a error "error: 'intA.ToString' does
not exist".

I know there are two mode, and the question is not about this, also I feel
very supprised that there are also some silimair questions posted with no
answer at all.

Maybe somebody here can share some light.


Nov 17 '05 #3

"walter" <ww*@morneausobeco.com> wrote in message
news:BE**********************************@microsof t.com...
Hi there, I'm totally lost on why command window in C# can not run this :

?intA.toString()

It's simple ,right ? but IDE give me a error "error: 'intA.ToString' does
not exist".

I know there are two mode, and the question is not about this, also I feel
very supprised that there are also some silimair questions posted with no
answer at all.

Maybe somebody here can share some light.

? intA
or
? intA.ToString()

Willy.

Nov 17 '05 #4
It's a typo, I mean ToString(). Your second suggestion "?intA.ToString()"
wouldn't work. -- that's why I post the question here. Hopefully some "guru"
can answer the question.

"Willy Denoyette [MVP]" wrote:

"walter" <ww*@morneausobeco.com> wrote in message
news:BE**********************************@microsof t.com...
Hi there, I'm totally lost on why command window in C# can not run this :

?intA.toString()

It's simple ,right ? but IDE give me a error "error: 'intA.ToString' does
not exist".

I know there are two mode, and the question is not about this, also I feel
very supprised that there are also some silimair questions posted with no
answer at all.

Maybe somebody here can share some light.

? intA
or
? intA.ToString()

Willy.

Nov 17 '05 #5
On Wed, 4 May 2005 12:36:02 -0700, walter <ww*@morneausobeco.com>
wrote:
It's a typo, I mean ToString(). Your second suggestion "?intA.ToString()"
wouldn't work. -- that's why I post the question here. Hopefully some "guru"
can answer the question.

Try putting a space between the ? and the intA.ToString()


"Willy Denoyette [MVP]" wrote:

"walter" <ww*@morneausobeco.com> wrote in message
news:BE**********************************@microsof t.com...
> Hi there, I'm totally lost on why command window in C# can not run this :
>
> ?intA.toString()
>
> It's simple ,right ? but IDE give me a error "error: 'intA.ToString' does
> not exist".
>
> I know there are two mode, and the question is not about this, also I feel
> very supprised that there are also some silimair questions posted with no
> answer at all.
>
> Maybe somebody here can share some light.

? intA
or
? intA.ToString()

Willy.


Nov 17 '05 #6
Hmmm, don't you see the space between ? and intA

Willy.
"walter" <ww*@morneausobeco.com> wrote in message
news:35**********************************@microsof t.com...
It's a typo, I mean ToString(). Your second suggestion "?intA.ToString()"
wouldn't work. -- that's why I post the question here. Hopefully some
"guru"
can answer the question.

"Willy Denoyette [MVP]" wrote:

"walter" <ww*@morneausobeco.com> wrote in message
news:BE**********************************@microsof t.com...
> Hi there, I'm totally lost on why command window in C# can not run this
> :
>
> ?intA.toString()
>
> It's simple ,right ? but IDE give me a error "error: 'intA.ToString'
> does
> not exist".
>
> I know there are two mode, and the question is not about this, also I
> feel
> very supprised that there are also some silimair questions posted with
> no
> answer at all.
>
> Maybe somebody here can share some light.

? intA
or
? intA.ToString()

Willy.

Nov 17 '05 #7
Now I do see it, but it still doesn't work, actually I tried both with &
w/out space, the result is the same -- intA only is find, but intA.ToString()
complains. By the way, I'm using VS2003 , hopefully you are not talking 2005.

Thanks

"Willy Denoyette [MVP]" wrote:
Hmmm, don't you see the space between ? and intA

Willy.
"walter" <ww*@morneausobeco.com> wrote in message
news:35**********************************@microsof t.com...
It's a typo, I mean ToString(). Your second suggestion "?intA.ToString()"
wouldn't work. -- that's why I post the question here. Hopefully some
"guru"
can answer the question.

"Willy Denoyette [MVP]" wrote:

"walter" <ww*@morneausobeco.com> wrote in message
news:BE**********************************@microsof t.com...
> Hi there, I'm totally lost on why command window in C# can not run this
> :
>
> ?intA.toString()
>
> It's simple ,right ? but IDE give me a error "error: 'intA.ToString'
> does
> not exist".
>
> I know there are two mode, and the question is not about this, also I
> feel
> very supprised that there are also some silimair questions posted with
> no
> answer at all.
>
> Maybe somebody here can share some light.
? intA
or
? intA.ToString()

Willy.


Nov 17 '05 #8
Things seems more bizarr-- ex.ToString() works but intA.ToString() doesn't. I
also tried some functions from XmlNode class, again , some work some not.

It must be some reason for this! It really piss me off when I cannot not
figure it out, and seems no one else has this issue!

"walter" wrote:
Hi there, I'm totally lost on why command window in C# can not run this :

?intA.toString()

It's simple ,right ? but IDE give me a error "error: 'intA.ToString' does
not exist".

I know there are two mode, and the question is not about this, also I feel
very supprised that there are also some silimair questions posted with no
answer at all.

Maybe somebody here can share some light.

Nov 17 '05 #9
I have the issue too. I guess I've just assumed it wasn't supposed to
work. None of the other "typo corrections" people have posted work for
me either. I've also tried both windows "command" and "immediate". The
immediate window at least gives intellisense support, but still reports
the same error.

In my code I have:
int x = 3;
I have a breakpoint on the next line. During debug, I stop at that
breakpoint. Here is the output from my command/immediate window:
? x 3 ? x.ToString() error: 'x.ToString' does not existimmed

? x
3
? x.ToString()
error: 'x.ToString' does not exist
Nov 17 '05 #10

"walter" <ww*@morneausobeco.com> wrote in message
news:34**********************************@microsof t.com...
Now I do see it, but it still doesn't work, actually I tried both with &
w/out space, the result is the same -- intA only is find, but
intA.ToString()
complains. By the way, I'm using VS2003 , hopefully you are not talking
2005.

Thanks


No, talking about VS2003 too. But you are right if fails randomly and not
only with ToString().
Here IntA works, inta fails, x fails, X works....

I would suggest you check this in Ladybug
http://lab.msdn.microsoft.com/produc...k/default.aspx, and file a bug
if this is a not yet known bug (I guess it is).

Willy.
Nov 17 '05 #11

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

Similar topics

2
by: Eric Ching | last post by:
Can I run pythonw with a script that takes command line arguments then launches a GUI? I try pythonw myscript.pyw -option arg (etc.) and nothing happens. Nothing, as in I am immediately returned...
2
by: Fred Snider | last post by:
Help! Opening a new window using the window.open( ) command works great for opening new windows and having them on top and having the focus. The window.focus command brings any existing...
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...
5
by: Jeff Thies | last post by:
I have this IE specific bit of code for finding the originating node: var obj=window.event.srcElement; How do I do that cross browser (Opera, NS, Safari...)? Is there a standard DOM method? ...
4
by: David Logan | last post by:
Hello, I am trying to open a window with a graphic in it and have the window be exactly the correct size of the image. Is there anyway to do this that will work on any browser on any OS???? ...
2
by: walter | last post by:
I really mean this. It even cannot run "?strA.ToUpper()" in Command window. From this point VB.NET is far better than C#. I just think there is long way for C# to catch VB from usability's angle....
2
by: Enrique Bustamante | last post by:
Casting arrays that works on watch and command window but not in code. My application is casting arrays in a way it should work. To test if I was doing something invalid, I wrote a test code that...
5
by: piradie | last post by:
Hello, I've been googling around, and looking into different webpages but couldn't find a clear response for the issue I need to resolve, so I was hoping any of you could give me an answer to my...
1
by: SilverGS | last post by:
I want to automatically open a Command Window from the Startup folder in Windows XP. right now after XP starts, I click on Start run, cmd and then when the command window is open I type in a bunch...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome former...
0
by: ryjfgjl | last post by:
In our work, we often need to import Excel data into databases (such as MySQL, SQL Server, Oracle) for data analysis and processing. Usually, we use database tools like Navicat or the Excel import...
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: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
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
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...

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.