Change the Contents of a Variable

To change the contents of a variable, the variable must first be visible in a view that displays the variable's contents:

If no such view is available, click mouse button 1 on the variable, select the object for the variable from the popup menu, and select Show Variable Value or Add to Expression Monitor from the cascading menu.

Follow these steps once the variable is visible in such a view:

  1. If the variable's contents are not visible, click on the icon beside the variable's name to display its contents.
  2. Click mouse button 1 over the variable's contents.
  3. Edit the current contents, or delete them and enter a new value. For numeric values, the value you enter must indicate its representation according to C++ language rules. For example, precede a hexadecimal value with 0x0. For a variable of type char, enter the character in single quotes. For a character array, enter the string without its enclosing double quotes. For a member of an enumeration, you can enter the enumeration name.
  4. Press Enter or select a different pane with the mouse to update. If the value you entered was invalid, a warning beep sounds and the original value is restored.


Add a Variable to the Monitored Expressions View