in the FAQ forum, there is a sticky post "FAQ Contents Page" and in there you will find "How to use UDFs"

That should get ya started