Changing the Values of Variables
You can change the value of any variable or the contents of any memory location displayed in a Variable Window by selecting the value and typing the new value. In addition to typing a value, you can also type an expression. For example, you can enter 1024*1024 as shown in the following figure. This expression can use logical operators.
Using an Expression to Change a Value 
|
You can also edit a variable's value directly within the Stack Frame Pane by selecting it. You cannot, however, change the value of bit fields directly, but you can use the Tools > Evaluation Window to assign a value to a bit field. See Evaluating Expressions. Similarly, you cannot directly change the value of fields in nested structures: you must first dive into the value.