Compartir a través de


Changing a Symbol's Numeric Value

 

The latest version of this topic can be found at Changing a Symbol's Numeric Value.

For symbols associated with a single resource, you can use the Properties Window to change the symbol value. You can use the Resource Symbols dialog box to change the value of symbols not currently assigned to a resource. For more information, see Changing Unassigned Symbols.

To change a symbol value assigned to a single resource or object

  1. In Resource View, select the resource.

    Note

    If your project doesn't already contain an .rc file, please see Creating a New Resource Script File.

  2. In the Properties window, type the symbol name followed by an equal sign and an integer in the ID box, for example:

    IDC_EDITNAME=5100  
    

The new value is stored in the symbol header file the next time you save the project. Only the symbol name remains visible in the ID box; the equal sign and value are not displayed after they are validated.

For information on adding resources to managed projects, please see Resources in Applications in the .NET Framework Developer's Guide. For information on manually adding resource files to managed projects, accessing resources, displaying static resources, and assigning resources strings to properties, and Walkthrough: Using Resources for Localization with ASP.NET.

Requirements

Win32

See Also

Symbol Value Restrictions
Predefined Symbol IDs