You need to put the command window into Immediate mode if you want method
In command mode it wants VS Commands (e.g. Debug.Watch). In Immediate mode
it wants expressions e.g. foo.bar(0)
>Content-Class: urn:content-classes:message
>From: "Les Smith" <anonymous@discussions.microsoft.com>
>Sender: "Les Smith" <anonymous@discussions.microsoft.com>
>References: <u2WyaWe3DHA.3224@tk2msftngp13.phx.gbl>
>Subject: what is the deal with the command window in C# debugging projects
>Date: Wed, 21 Jan 2004 06:23:48 -0800
>Lines: 56
>Message-ID: <139d01c3e02a$2f2e7d50$a301280a@phx.gbl>
>MIME-Version: 1.0
>Content-Type: text/plain;
> charset="iso-8859-1"
>Content-Transfer-Encoding: 7bit
>X-Newsreader: Microsoft CDO for Windows 2000
>X-MimeOLE: Produced By Microsoft MimeOLE V5.50.4910.0300
>Thread-Index: AcPgKi8s2saoweZfT7GeerRct3taCQ==
>Newsgroups: microsoft.public.vsnet.debugging
>Path: cpmsftngxa07.phx.gbl
>Xref: cpmsftngxa07.phx.gbl microsoft.public.vsnet.debugging:4694
>NNTP-Posting-Host: tk2msftngxa11.phx.gbl 10.40.1.163
>X-Tomcat-NG: microsoft.public.vsnet.debugging
>
>Eric
>Something else has to be wrong, I just tried removing an
>item from an arraylist of structure with
>
>regionlist.removeat(0) and it worked.
>
>Here is my command window
>
>?regionlist(0).rname
>"Helper Methods " {String}
> String: "Helper Methods "
>
>regionlist.RemoveAt(0)
>
>?regionlist(0).rname
>"Consturctor" {String}
> String: "Constructor "
>
>Constructor was at (1) until I did the removeat and then
>it moved down to (0).
>
>Check to make sure you have something in the arraylist. I
>am using 2003 .NET.
>
>Hope this helps.
>Les
>
>Articles, .NET info, add-ins, free code at
>
http://www.knowdotnet.com >
>>-----Original Message-----
>>its practically useless... I can print variables
>>
>>? arrayList.Count
>>
>>but i can't do this:
>>
>>arrayList.RemoveAt(0)
>>
>>or
>>
>>>arrayList.RemoveAt(0)
>>Command "arrayList.RemoveAt(0)" is not valid.
>>
>>grrr!
>>
>>
>>--
>>Eric Newton
>>eric.at.ensoft-software.com
>>
www.ensoft-software.com >>C#/ASP.net Solutions developer
>>
>>
>>.
>>
>
This posting is provided "AS IS" with no warranties, and confers no rights.
originated.