Or just paste the entire UDF code into a separate file, save the file in the same dir your script is or create a functions dir inside the dir your script is in (I prefer the second option) and call the function once at the beginning of your script. This way they are not in your primary script and can still be used but they just don't make your script that long.
This way you will also get a nice clean separation between your code and code somebody else wrote.

Code:

Call @scriptdir + "\SomeFunction.kix"

All other ode goes here



or

Code:

Call @scriptdir + "\functions\SomeFunction.kix"

All other ode goes here

_________________________
Mart

- Chuck Norris once sold ebay to ebay on ebay.