4.7. Scripting Tips

Here are some ways to facilitate scripting.

4.7.1. Copying a complete tutorial

The code from DataHub tutorials can be copied directly from the text into the Script Editor. Here's how to make a new script from a complete tutorial.

  1. Open the DataHub Properties window and select the Scripting option.

  2. Click the New button. This dialog will appear:

  3. In the New class: field, enter a name of your choice.

  4. Click the OK button to create the file. The Script Editor will open, displaying a script template.

  5. Using the cursor or Ctrl-A, select all the text and delete it.

  6. Copy a complete tutorial from the DataHub Windows Help manual or online documentation into the Script Editor.

  7. Save and run the script using the blue arrow icon .