The topic you requested is included in another documentation set. For convenience, it's displayed below. Choose Switch to see the topic in its original location.

Evaluate Statement Command 

Evaluates and displays the given statement.

Debug.EvaluateStatement 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


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


will assign to variable a the value of variable b.

Was this page helpful?
(1500 characters remaining)
Thank you for your feedback

Community Additions

© 2014 Microsoft