Managing the Member Variables in a Class

Using Class Builder, you can easily manage the member variables defined by your class. Class Builder assists you in adding a new member variable, adding a member variable based on an existing definition, modifying a member variable, and deleting a member variable.

To display the member variables in your class

  1. Start Class Builder and make sure your class is selected by Class Builder. For information on how to do this, see Starting Class Builder.

  2. Click the Member Variables tab in Class Builder. The Member Variables list displays the member variables that are currently defined by your class. (Depending on the current settings for Class Builder, this list may be filtered. For more information, see Setting Class Builder Options.)

To add a new member variable

  1. Click Add. In the Add Member Variable dialog box, enter the information for the member variable:
  2. Click Add.

To add a member variable based on an existing definition

  1. Select a member variable from the Member Variables list and click Clone. The Clone Member Variable dialog box displays the information for the selected member variable, which is the basis for the new member variable.

  2. Replace the name in the Member Variable Name box with the name of the new member variable. Modify the remaining selections as needed.

  3. Click Add.

To modify an existing member variable definition

  1. Select the member variable from the Member Variables list and click Modify.

  2. In the Modify Member Variable dialog box, modify the information for the member variable and then click Modify.

To delete a member variable that has already been declared