Templates for scripts
The forms for workflows, copy methods, and equations include templates for new scripts in an object coded @DFLT. The template uses the script language specified in the Language field. However, the language can be changed only if the correct template code is provided.
Note:
- Symbol scripts exclude the @DFLT template because function content changes. You can add a script only when a function is required. For functions that apply to each symbol see, Scripts for Optiva object events
- The specific class name in the library needs to be updated to match the Script code
For all script types, you specify the script within the main function(s) in the template.
| VisualBasic.Net example function | C# example function |
|---|---|
|
Function execute() as long End function |
|
These scripts provide initial script structures for both languages.
| Script type | VisualBasic.Net | C# |
|---|---|---|
|
Equation |
|
|
|
Action |
|
|
|
Script Library (replace <SCRIPT_NAME> with the actual Library code) |
|
|
|
Symbol |
|
|