RAD Studio (Common)
ContentsIndex
PreviousUpNext
Option Sets: Creating, Applying, Editing, and Deleting

This topic contains procedures for creating, applying, editing, and deleting option sets using the ProjectOptions dialog box or the Project Manager.

To create an option set from the Project Manager

  1. In the Project Manager, open the Build Configurations node and right-click the configuration (such as Release or Debug) that you want to use as a base for the option set
  2. On the context menu, click New Option Set.
  3. In the Save As dialog box, enter a name for the option set you are creating.
  4. Click Save to save the option set to an .optset file. The default location for option sets is the current project folder, inside My Documents/RAD Studio/Projects.

To apply an option set from the Project Options dialog box

  1. Choose ProjectOptions.
  2. From the pull-down menu, select the Build Configuration to which you want to apply the option set.
  3. Click Apply Options to display the Apply Option Set dialog.
  4. On the Apply Option Set dialog box, navigate to the .optset file that you want to apply.
  5. Choose how you want to load the values from the named option set: Add as reference or Modify this configuration.
  6. If you choose Modify this configuration, the Priority field becomes enabled. Here you select the priority for the merger of the option set with the selected build configuration (Replace all values, Option set file, or This configuration).
  7. Click OK to apply the option set. If you applied the option set by reference, the name of the .optset file is added to the build configuration node in the Project Manager and is placed beneath the current build configuration.
  8. Save changes to the project. If you do not save changes to the project, an option set applied by reference will not appear in the Project Manager the next time you open the project, and the modifications the con

To apply an option set from the Project Manager

  1. In the Project Manager, right-click the configuration to which you want to apply an option set.
  2. On the context menu, click Apply Option Set to display the Apply Option Set dialog.
  3. Navigate to the .optset file you want to apply.
  4. Choose how you apply the values from the named option set: Add as reference or Modify this configuration.
  5. If you choose Modify this configuration, you must select the priority for the merge of the option values from the option set and the current build configuration (Replace all values, Option set file, or This configuration).
  6. Click OK to apply the option set. The option set is added to the Project Manager and is placed beneath the configuration it was applied to.
  7. Save changes to the project. If you do not save changes to the project, the option set will not appear in the Project Manager the next time you open the project.

To edit an option set

  1. On the Project Manager, locate and right-click the option set file that you want to edit.
  2. Select Edit on the context menu.
  3. A limited version of the Project Options dialog box appears, enabling you to edit the options in the option set.
  4. To save the option set after editing, click OK on the Project Options dialog box.

To delete an option set

  1. In the Project Manager, locate and right-click the option set file you want to delete.
  2. Select Remove Option Set from the context menu.
  3. When the Confirm dialog box appears, click Yes.

Copyright(C) 2009 Embarcadero Technologies, Inc. All Rights Reserved.
What do you think about this topic? Send feedback!