22.7 User-Defined Functions

Register an existing script as a user-defined function so you can use it within other scripts. The registered function can be used by a D-Script, Global D-Script, or Extended Script.

  1. From the [Functions] tab's [User Defined Functions], click [Create]. The [Function Name] dialog box appears.
    Enter the function name, and click [OK].

  2. In the [D-Script] dialog box, the [User Defined Functions] tab appears. Define the [Data Type], [Bit Length], and enter the expression.

  3. Open the main function (D-script, Global D-Script, Extended Script), select the user-defined function to call and click [Call] to place the called function name in the script expression area.

  4. Click [Close].