(VS2003)
? int.Parse("2.0")
error: identifier 'int' out of scope
? "foo".IndexOf("o")
error: expression '"foo".IndexOf' out of scope
For the love of god, why is int and other basic stuff out of scope in my
Command window when I'm debugging?
VB doesn't do this, is this a C# thing?
Paul 7 2351
On Apr 6, 10:21 am, "PJ6" <n...@nowhere.netwrote:
(VS2003)
? int.Parse("2.0")
error: identifier 'int' out of scope
? "foo".IndexOf("o")
error: expression '"foo".IndexOf' out of scope
For the love of god, why is int and other basic stuff out of scope in my
Command window when I'm debugging?
VB doesn't do this, is this a C# thing?
Paul
Try adding a ; to the end of your statement..
"Andy" <an***@med-associates.comwrote in message
news:11*********************@y80g2000hsf.googlegro ups.com...
On Apr 6, 10:21 am, "PJ6" <n...@nowhere.netwrote:
Try adding a ; to the end of your statement..
Try testing your recommendations.
"PJ6" <no***@nowhere.netwrote in message
news:u6**************@TK2MSFTNGP04.phx.gbl...
"Andy" <an***@med-associates.comwrote in message
news:11*********************@y80g2000hsf.googlegro ups.com...
>On Apr 6, 10:21 am, "PJ6" <n...@nowhere.netwrote: Try adding a ; to the end of your statement..
Try testing your recommendations.
Nice attitude.
Good luck solving your problem
PJ6 wrote:
(VS2003)
? int.Parse("2.0")
error: identifier 'int' out of scope
? "foo".IndexOf("o")
error: expression '"foo".IndexOf' out of scope
You'll be pleased to know that both examples work fine in VS2005 :-/
In VS2003 the following works OK:
?Int32.Parse("2")
and even
?"foo".Length
however, I can't get:
?"foo".IndexOf('o')
to work.
--
Thank you,
Christopher Ireland
? "foo".IndexOf('o')
works...in vs2005
I kept getting "Command "?"foo".IndexOf('o')" is not valid.", until I
added the space.
On Apr 6, 10:44 am, "Christopher Ireland" <cirel...@gmail.comwrote:
PJ6 wrote:
(VS2003)
? int.Parse("2.0")
error: identifier 'int' out of scope
? "foo".IndexOf("o")
error: expression '"foo".IndexOf' out of scope
You'll be pleased to know that both examples work fine in VS2005 :-/
In VS2003 the following works OK:
?Int32.Parse("2")
and even
?"foo".Length
however, I can't get:
?"foo".IndexOf('o')
to work.
--
Thank you,
Christopher Ireland
On Apr 6, 10:37 am, "PJ6" <n...@nowhere.netwrote:
Try testing your recommendations.
I did, it worked. Maybe next time you should try the proper group:
microsoft.public.vstudio.general
I'm sorry for this post, Andy, I was angry at having to use C#, and moving
down from 2005 to 2003.
I'll try harder to be more polite in the future, I value the help I receive
in these newsgroups.
Paul
"PJ6" <no***@nowhere.netwrote in message
news:u6**************@TK2MSFTNGP04.phx.gbl...
"Andy" <an***@med-associates.comwrote in message
news:11*********************@y80g2000hsf.googlegro ups.com...
>On Apr 6, 10:21 am, "PJ6" <n...@nowhere.netwrote: Try adding a ; to the end of your statement..
Try testing your recommendations. This thread has been closed and replies have been disabled. Please start a new discussion. Similar topics
by: Anonymous |
last post by:
Is namespace the same thing as scope? While reading the book
"Thinking in C++", I was under the impression that namespace is, well,
a namespace--a feature to create a hiearchy for identifiers...
|
by: pembed2003 |
last post by:
Hi all,
I am reading the book "C++ How to Program" and in the chapter where it
discuss scope rule, it says there are four scopes for a variable:
function scope
file scope
block scope...
|
by: pembed2003 |
last post by:
Hi all,
I am reading the book "C How to Program" and in the chapter where it
discuss scope rule, it says there are four scopes for a variable:
function scope
file scope
block scope...
|
by: TTroy |
last post by:
I have a few questions about "scope" and "visibility," which seem like
two different things.
To me "visibility" of the name of a function or object is the actual
code that can use it in an...
|
by: marco_segurini |
last post by:
Hi,
I am using VS 2005.
If I compile the following code only line 6 returns me an error while
line 9 returns a warning. If I comment the line 6 and debug the
program the assignments of lines...
|
by: utab |
last post by:
Dear all,
Is there a clear distinction how to decide which functions to be
members of a class and which not
How is your attitude (Your general way from your experiences ...)
"If the...
|
by: Christian Christmann |
last post by:
Hi,
I've a a question on the specifier extern.
Code example:
void func( void )
{
extern int e;
//...
|
by: Steven T. Hatton |
last post by:
All of the following terms are used in some way to describe where and how a
name is relevant to a particular location in a program: visible,
declarative region, scope, potential scope, valid,...
|
by: pbmods |
last post by:
VARIABLE SCOPE IN JAVASCRIPT
LEVEL: BEGINNER/INTERMEDIATE (INTERMEDIATE STUFF IN )
PREREQS: VARIABLES
First off, what the heck is 'scope' (the kind that doesn't help kill the germs that cause...
|
by: Giacomo Catenazzi |
last post by:
Hello,
To learn the details of C, I've build the following example,
could you check if it is correct and if it miss some important
cases?
Are there some useful (real cases) examples of:
-...
|
by: nemocccc |
last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
|
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...
|
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: 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,...
|
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...
|
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: Hystou |
last post by:
Overview:
Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
|
by: tracyyun |
last post by:
Dear forum friends,
With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
|
by: isladogs |
last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 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 a new...
| |