Copy Child Codes to a Code

Use the Copy Children dialog box to copy child codes to another code within the same code file. However, you cannot use this feature if the code file has a non-significant structure.

To copy child codes to an existing code:

  1. Display the Code view for the code file that you want to update.
  2. Click the code whose child codes you want to copy to another code.
  3. In the Codes group on the Edit tab, click Copy Children.
    Note: You can also right-click the code whose child codes you want to copy to another code and select Copy Children on the shortcut menu.

    The Copy child codes from code field on the Copy Children dialog box displays the code that you right-clicked. Cobra will copy child codes from this code to the code that you will select in the To code field.

  4. In the To code field, enter, or use to select, the code to which Cobra will copy the child codes.
  5. Click OK on the Copy Children dialog box. Cobra copies the child codes to the selected code.
    Note: You can only copy child codes to a code that does not have its own child codes.