Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
Home
Discussion GroupsGeneralPHPASPPerlColdFusionFlashHTML, CSS, ScriptsBrowsers

Webmaster Forum / ColdFusion / Getting Started / August 2006



Tip: Looking for answers? Try searching our database.

Help with the dot notation please!

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
WenAhu - 29 Aug 2006 18:45 GMT
I have something like this :
<cfset VarResult = request.reference.selSearchVar()>
I'm not sure I understand this dot notation in assigning value to a variable called: VarResult, can anyone help?
Dan Bracuk - 29 Aug 2006 18:59 GMT
The answer lies in your application.cfc(cfm) file, but my guess is that
reference is the name assigned to an object using  <cfobject> or replace
object.  selSearchVar() is a function in the cfc that was used to create the
object.

request is a special variable scope.  If you google "coldfusion request scope"
you will get a more detailed answer than I am willing to type.
LeftCorner - 30 Aug 2006 03:56 GMT
Looks like the developer created an object called "reference" and assigned to
the request scope, and this object has a method called selSearchVar(). The
return value for selSearchVar() is being set to the local variable "VarResult".

You can introspect the state of the variables with the <cfdump> tag to see
what value they hold

<cfdump var="#VarResult#">

Will show the value of VarResult.

<cfdump var="#request.reference#">

Will show the structure of the "reference" object.
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2009 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.