All,

I have been away from coldfusion for about a year or so and now need to get back into in. I am using ColdFusion MX for this project that I am working on. I need some clarification if possible.

How should I define variables in a CFC and why?
What is the difference between the three?

<cfcomponent>
  <cfset var dsn = "DataSourceName">
  <cfset variables.dsn = "DataSourceName">
  <cfset this.dsn = "DataSourceName">
</cfcomponent>

Thanks,
Troy

--
Troy Simpson
  Applications Analyst/Programmer, OCPDBA, MCSE, SCSA
North Carolina State University Libraries
Campus Box 7111 | Raleigh | North Carolina
ph.919.515.3855 | fax.919.513.3330
E-mail: [EMAIL PROTECTED]

----------------------------------------------------------
You are subscribed to cfcdev. To unsubscribe, send an email
to [EMAIL PROTECTED] with the words 'unsubscribe cfcdev' in the message of the email.


CFCDev is run by CFCZone (www.cfczone.org) and supported
by Mindtool, Corporation (www.mindtool.com).

An archive of the CFCDev list is available at www.mail-archive.com/[EMAIL PROTECTED]

Reply via email to