If you call the UDF's from the main script and also call the child scripts from the main script everything will be ok because everything runs in the same kixtart process.

There are several options for calling all functions without errors if you add a new function.

-1 You can put all functions into one separate file and call that file that the top of your script.
-2 You can put all function in separate files and call them one by one by walking through the folder that holds the function files. See below for an example. I have the example below at the top of almost all of my scripts.

 Code:
;Call each *.udf file until an error occurs or there are no more files to call.
$udf = Dir(@SCRIPTDIR + "\functions\*.udf")
While $udf <> "" And @ERROR = 0
	Call @SCRIPTDIR + "\functions\" + $udf
 	;Get next *.udf filename.
	$udf = Dir()
Loop
_________________________
Mart

- Chuck Norris once sold ebay to ebay on ebay.