I knew I could be helpfull

seriously, for "sloppy coders" it could be needed to have a defined("KEYWORD") function.
actually, now as I think of it, it sounds almost perfect!

can I ask...
you said, you are including the udf but do you use pre-tokenized file?
thinking of it, currently it can be bit problematic of CALLing a tokenized script that has included UDFs.
there is no way of limiting the UDFs to that KX-script, right?

obviously, I didn't test this.
just thinking about the scenarios.
_________________________
!

download KiXnet