Click to Rate and Give Feedback
MSDN
MSDN Library
Visual Studio 2008
Visual Studio
Reference
Command Window
 Evaluate Statement Command

  Switch on low bandwidth view
This page is specific to
Microsoft Visual Studio 2008/.NET Framework 3.5

Other versions are also available for the following:
Visual Studio
Evaluate Statement Command

Evaluates and displays the given statement.

Debug.EvaluateStatement text 
text

Required. The statement to evaluate.

The window used to enter the EvaluateStatement command determines whether an equals sign (=) is interpreted as a comparison operator or as an assignment operator.

In the Command window, an equals sign (=) is interpreted as a comparison operator. So, for example, if the values of variables a and b are different, then the command

>Debug.EvaluateStatement(a=b)

will return a value of false.

In the Immediate window, by contrast, an equals sign (=) is interpreted as an assignment operator. So, for example, the command

>Debug.EvaluateStatement(a=b)

will assign to variable a the value of variable b.

>Debug.EvaluateStatement(a+b)
Tags What's this?: Add a tag
Community Content   What is Community Content?
Add new content RSS  Annotations
Processing
© 2009 Microsoft Corporation. All rights reserved. Terms of Use  |  Trademarks  |  Privacy Statement
Page view tracker