Sorry for the cross post, this might be a better place for this
question...

Does anyone have an example onMissingMethod to show? Here is what I
have. Anyone have anything different or spot anything wrong with mine?

<cffunction name="onMissingMethod">

        <cfargument name="missingMethodName" type="string" required="true">
        <cfargument name="missingMethodArguments" type="struct"
required="true">

        <cfset var action = Left(ARGUMENTS.missingMethodName, 3)>
        <cfset var property = Right(ARGUMENTS.missingMethodName,
Len(ARGUMENTS.missingMethodName) - 3)>

        <cfif action EQ "get">
                <cfreturn VARIABLES[property]>
        <cfelseif action EQ "set">
                <cfset VARIABLES[property] = 
ARGUMENTS.missingMethodArguments[1]>
        </cfif>

</cffunction>

Ta.

Adrian


--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"CFCDev" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/cfcdev?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to