If you are using the JavaScript language:
> function sum(num1, num2){return (num1 + num2);}
Then, you can invoke the
'sum' function from anywhere:
> var r = sum(2+3);
Sometimes, you'll need select the
"Insert Script Object" option from the context menu that appears when you right-click over the form name in the
Hierarchy View.
When a new
Script Object has been added, it will be visible at the end of the hierarchy list inside of
'Variables' group. Put your global functions here if you want to use them from anywhere in the form.
Good luck,
Dan