> Can anyone please tell me the difference between cfproperty tag and variables > defined using this scope. Both are used to define > CFC properties?
The answer to this is a bit complicated, and version-dependent. If you're using CF 8 or earlier, the CFPROPERTY tag does nothing but define metadata, as Steven mentioned. This is not especially useful except in a couple of narrow cases. Using CFPROPERTY will show the variable in your automatically-generated documentation (human-readable and WSDL), but it doesn't actually create the variable - you have to do that separately. If you only create the variable and don't use CFPROPERTY, you don't see it in the documentation even though it's actually there. CF 9 changed this significantly. With CF 9, using CFPROPERTY actually creates a public variable in addition to creating documentation. In addition to that, it also "creates" accessors and mutators (setters and getters). It doesn't actually generate visible code in your CFC, but those methods will be available for you to call without you actually writing them. Dave Watts, CTO, Fig Leaf Software http://www.figleaf.com/ http://training.figleaf.com/ Fig Leaf Software is a Veteran-Owned Small Business (VOSB) on GSA Schedule, and provides the highest caliber vendor-authorized instruction at our training centers, online, or onsite. ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~| Want to reach the ColdFusion community with something they want? Let them know on the House of Fusion mailing lists Archive: http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:330352 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4

