Okay, time for me to jump in and cite from the rules:
quote:
You are not allowed to use additional code that is external to the MOAN UDF. All code must be contained within the MOAN UDF.
Thus, the first example is valid while the second example is not valid as code outside the MOAN UDF is being called
code:
;example 1
;!
function moan($a,$b,$c)
; doing my thing
endfunction
;!
;!

code:
;example 2
;!
function moan($a,$b,$c)
$a=externaludf($b)
endfunction
function externaludf($a)
endfunction
;!
;!

However, COM calls to components that are part of a standard Windows installation are allowed. That is covered in the rules, too.

I'm glad to see that we finally have some competition going on [Big Grin]
_________________________
There are two types of vessels, submarines and targets.