Concept : Understanding Copy and Paste

Page Status: Beta

Back to Concepts and HOW TOs

Contents

[edit] Description 

You can copy various types of objects, such as fields, functions, forms and classes. To copy, right-click the desired object from either the Solution Explorer or Solution Detail panel, and select Copy. To paste, right-click the desired parent object in the Solution Explorer, and select Paste.

[edit] Using the Clipboard

Copy and paste use Bungee Builder's clipboard, which is not part of the host operating system's clipboard.

When you copy an object to the clipboard, the object is added to the clipboard as the first item. To open Bungee Builder's clipboard, right-click on a class, TypeLib project, or WSDL project in the Solution Explorer and select Open Clipboard... The clipboard will not open if no objects have been copied to it.

To paste multiple items from the clipboard, open the clipboard and select the items that you want to paste, then close the clipboard dialog. The next time you use paste, it will paste each of the selected objects that can be pasted into the target container. (For example, if you have a class and a function selected on the clipboard and you paste into a class, only the function will be pasted into the class.)

[edit] Handling Inheritance, Paths and Bindings

When you copy a field or a function from a source class to a target class that inherits from the source class, the copied field or function gets pasted as an override.

If the target class does not inherit from the source class, then all sites that are set to Path in forms, functions, connections, and fields are cleared.

[edit] Caveats when Copying Forms into the Originating Class

While copying a form can save you lots of time in tweaking layouts, there are some pitfalls to be aware of, particularly when reusing the copied form in the same class. controls (for example Buttons) retain their connections to the underlying functionality when you copy the form into the same class as the original form. This means you should make any needed changes in your new form in a systematic way, otherwise you may make mistakes and create more work for yourself. To avoid some common errors, you may want to follow the following steps in the order given:

  1. If you have the form you want to copy open in the Design Editor, close the tab displaying the form.
  2. As soon as you paste the form, select the form in the Solution Details, then change the form's Name to a new name you want (when you paste the form, the form is given the name of the original with the addition of a 1 at the end).

 

For example, if you need to change the functions or fields a series of controls point to,

[edit] Supported Types

[edit] See Also

Using Copy and Paste
Understanding Forms
Editing a Form

[edit] Tags

 

    Copyright © 2005 - 2007 Bungee Labs. All rights reserved.