Good topic of discussion!

Coming from the world of VB, I think of a UDF like an include. That is, a library of sorts that you can refer to later on in your code. A UDF can be simple or complex..

One way to think of this is something like a routine to "build a chair" where single commands would piece it together. If you are on the fence on going from 3.x to 4.x of KiXtart, it's beauty is that you can simplify, compact your current code without losing functionality. In our companys example, I was able to trim down from 102KB Login script to about 60KB and can be trimmed down further.

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