This question would be better served in the Starters Forum. -

Looking in the KiXtart FAQ & How to's Section, we see:

How to use UDFs

How to write a UDF

This is also addressed in the Documentation too.

HTH,

Kent
_________________________
Utilize these resources:
UDFs (Full List)
KiXtart FAQ & How to's