How about calling the UDF with an extra parameter only when you do the recursive call? Then test the length of the arguments array to see if the function was called by itself or from outside?
-- jon mailto:[EMAIL PROTECTED] Monday, January 6, 2003, 9:17:31 AM, you wrote: TS> Is there a way to tell if you are calling a recursive UDF from within the UDF? So that I could figure out from within my UDF that the UDF is being called by itself...hopefully this question TS> makes sense...TIA-> TS> Tyler ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~| Archives: http://www.houseoffusion.com/cf_lists/index.cfm?forumid=4 Subscription: http://www.houseoffusion.com/cf_lists/index.cfm?method=subscribe&forumid=4 FAQ: http://www.thenetprofits.co.uk/coldfusion/faq Get the mailserver that powers this list at http://www.coolfusion.com Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4