OK - found a small bug after trying an unreferenced UDF. Updated the code above to avoid an error when only one but invalid UDF is referenced.

BTW - here's the result of a BadUDF being referenced:
code:
 
;; KixGenerated: 2003/07/11 - 16:04:12
$iRC=EXECUTE('$a=BadUDF($b)')

It simply copies the source file into the target, and doesn't add any UDFs at all. Obviously, UDFs that don't exist on your system won't be included in the generated file.

Glenn
_________________________
Actually I am a Rocket Scientist! \:D