Adobe ColdFusion 8

Accessing component data directly

You can access data in the component's This scope directly in CFScript and cfset assignment statements. For example, if a user data CFC has a This.lastUpdated property, you could have code such as the following:

<cfobject name="userDataCFC" component="userData">
<cfif DateDiff("d", userDataCFC.lastUpdated, Now()) GT 30>
    <!--- Code to deal with older data goes here. --->
</cfif>

For more information, see The This scope.