Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Command Window to test code and display results

Status
Not open for further replies.

Razzle00

Programmer
Sep 27, 2006
20
US
Hi,

Is there any type of command window that you can enter code like this..

Math.Round(3.45, 1)

and then have it show the result like...

Returns 3.4.

Just wondering. Because this would allow me to test my code before I apply it to my application. Other wise I have to code it in my application then build the application, and then run the application before I can see the result.

Thanks,

Razzle

 
Visual Studio doesn't really have anything like this, except maybe the Immediate window. However, you can create a little application that should let you do this. Here's a link to one that may actually work for you with no modification:

Compile and run VB.NET code using the CodeDom

I used to rock and roll every night and party every day. Then it was every other day. Now I'm lucky if I can find 30 minutes a week in which to get funky. - Homer Simpson

Arrrr, mateys! Ye needs ta be preparin' yerselves fer Talk Like a Pirate Day! Ye has a choice: talk like a pira
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top