A simple example is fine.. I guess we have always tried to direct folks over to the UDF section rather than re-invent the wheel..

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