Manage Scripts

Top Previous Topic Next Topic  Print this topic

Use this dialog to define your own custom functions.

 

Manage_scripts02

 

To display the dialog: select the Home tab, go to Template group and press Manage Scripts button.

 

Manage_scripts

 

Functions are defined within a script block which has the following properties:

 

Script language: predefined values are JScript, CSharp, VBScript, but any string value will be accepted.

Script content: written in the programming language you specified.

Namespace prefix: a string (any literal string will do) that prevents name conflicts. A document can have two functions with the same name in different namespaces. When calling a function in the Edit Expression dialog always use the namespace name (for example fo:computeAverage(1,2) instead of just computeAverage(1,2)).

 

All functions defined in this dialog box will be listed in "User defined function" section in the Edit Expression dialog.

 

Note:

All functions defined in this dialog box will be listed in "User defined function" section in the Edit Expression dialog.