Wrox Programmer Forums
Go Back   Wrox Programmer Forums > C# and C > C# 1.0 > C#
|
C# Programming questions specific to the Microsoft C# language. See also the forum Beginning Visual C# to discuss that specific Wrox book and code.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the C# section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old February 13th, 2006, 10:57 AM
Friend of Wrox
 
Join Date: Jun 2003
Posts: 1,093
Thanks: 1
Thanked 12 Times in 11 Posts
Default Command Window - Immediate Mode

Hi folks,

What's up with the VS.NET Command Window's Immediate mode. I lived and breathed by the Immediate window in VS6 but can't get the .NET version to cooperate.

In VS6 I could evaluate expressions in the immediate window as easy as typing:

?Len(str)
 18
?LCase(str)
c:\apath\afile.exe

If I try it in VS.NET I get:

?file2
@"C:\Windows\System32\Notepad.exe"
?file2.ToLower()
error: 'file2.ToLower' does not exist

Is there anyway to do this kind of simple expression eveluation using the Immediate mode in VS.NET. Please say YES!!!

Thanks,

Bob




 
Old February 13th, 2006, 11:08 AM
joefawcett's Avatar
Wrox Author
 
Join Date: Jun 2003
Posts: 3,074
Thanks: 1
Thanked 38 Times in 37 Posts
Default

I've never got this to work unless I'm debugging a program.
Set a breakpoint and start the application. When the breakpoint is hit you can use the immediate window.

--

Joe (Microsoft MVP - XML)
 
Old February 13th, 2006, 11:17 AM
Friend of Wrox
 
Join Date: Jun 2003
Posts: 453
Thanks: 0
Thanked 1 Time in 1 Post
Send a message via AIM to Ankur_Verma Send a message via MSN to Ankur_Verma
Default

Have a look at this thread

http://p2p.wrox.com/topic.asp?TOPIC_ID=29927

Ankur

Regards
Ankur
 
Old February 13th, 2006, 09:48 PM
Friend of Wrox
 
Join Date: Jun 2003
Posts: 1,093
Thanks: 1
Thanked 12 Times in 11 Posts
Default

Thanks Joe and Ankur,

Took a look at the other thread.

Well...I guess its actually kinda' reassuring to know when something just plain old doesn't work. Can stop scratching my head about it at least. Just another reason to upgrade to 2K5...one o' these days.

Thanks,

Bob






Similar Threads
Thread Thread Starter Forum Replies Last Post
Remove Service "Command Window" steveAR Apache Tomcat 0 May 11th, 2007 11:30 AM
Remove Tomcat "Command Window" steveAR BOOK: Professional Apache Tomcat 0 May 11th, 2007 11:22 AM
how to alter shell command to direct where window dgr7 Beginning VB 6 4 March 16th, 2007 02:00 PM
Channel Mode and Window focus interrupt Javascript How-To 0 May 10th, 2006 02:45 AM
Command Window gabrieldcr2 General .NET 1 November 27th, 2005 04:37 PM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.