Creating a Script object

  1. Launch the Web Designer.
  2. Select Edit > Script.
  3. Click the New (+) button.
  4. In the Name field of the New form, specify a name for the new Script object.
  5. Click OK.
    The new Script name displays in the list on the left panel, and the Properties panel on the right displays the property sheet for the new Script object.
  6. From the Script Language drop-down list specify whether the script is to be in Visual C# or Visual Basic.
  7. To write the script, click the ellipsis () button next to the Name field.
  8. Use the Script Editor to write your script code.
  9. Click Compile Result.
  10. If necessary, correct any errors and recompile.
  11. To save your script, click OK.
  12. In the Scripts editor, click OK.