Doc,

Please note that I only did the one for 7.x,8. Also note: I added to your comment that the 7.x also works with 8. The UDF may break with previous versions as I don't use all of the vars that are passed back and forth through the array.

Thanks,

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