Ask Ben: Get Arguments For ColdFusion User Defined Functions

<!---
	Loop over all the keys in our VARIABLES scope. This could be
	*any* scope, but for this test, we are using the local scope
	of my *test* page.
--->
<cfloop
	item="strKey"
	collection="#VARIABLES#">
 
	<!---
		Check to see if this value is a user defined function.
		If so, then we can inspect it.
	--->
	<cfif IsCustomFunction( VARIABLES[ strKey ] )>
 
 
		<!--- Get a pointer to the method. --->
		<cfset fnMethod = VARIABLES[ strKey ] />
 
		<!--- Get the meta data of the method. --->
		<cfset objMetaData = GetMetaData( fnMethod ) />
 
		<!--- Dump out the meta data. --->
		<cfdump
			var="#objMetaData#"
			label="Method: #strKey#"
			/>
 
 
	</cfif>
 
</cfloop>

For Cut-and-Paste