Creating Fields with the C++ Class Explorer

From RAD Studio
Jump to: navigation, search

Go Up to C++ Class Explorer Topics

This procedure illustrates how to create a field in a selected class or interface when using the C++ Class Explorer.

To create a field in the C++ Class Explorer:

  1. Do either of the following:
    • Open the C++ Class Explorer as described here.
    • If the C++ Class Explorer is already running, return to the C++ Class Explorer by clicking the C++ Class Explorer tab at the top of the window.
  2. In the Type List pane, select (click) the class or interface to which you want to add a field.
  3. Do either of the following:
    • Click the class or interface and select the Add a new field to this class ClExplAddField.bmp toolbar button.
    • Right-click the class or interface, and select Add field from the context menu.
  4. On the Add Field To <name> dialog box, enter a name for the field in the Name box.
  5. In the Type field, either enter the data type of the field you are adding, or select a data type from the dropdown list.
  6. In Visibility, select the access control specifier for the field you are adding. You can select from:
  7. Click Add. The field is added to the user declarations in the .h file for the unit containing the declaration of the class or interface.

See Also

Personal tools
Newest Version: XE
In other languages