When you pass an argument to a CFC method, it isn't available in the
This scope, it's available in the Arguments scope:

<cffunction name="whichMap" returnType="numeric">
<cfargument name="theQuery" type="query" required="true">

<cfreturn arguments.theQuery.recordCount>
</cffunction>

You can also leave the "arguments." off as long as you have the
cfargument tag, but I recommend keeping it in.


[Todays Threads] [This Message] [Subscription] [Fast Unsubscribe] [User Settings]

Reply via email to