Adam Cameron wrote:
I understand what your example was saying... but we don't do any of that. That would create an error. Using "this.myField" #o.myField# using a function called myField <cfscript> o.myField(); </cfscript>I address the "This scope" as attributes. If someone creates a datafield that matches a function name they are both existing with simular "name" but they are independent unless someone violates good code and uses the code to set the this scope. In the oquery.cfc this should be avoided. Only the setattributes function should be used... and if you will notice the function is private to prevent the outside world from using it. Also... in answer to why I duplicate the query recordset rather than referencing it some have asked. It also creates a more encapsulated object. It keeps the internals of the object isolated from the outside world. They can execute methods... read attributes... and that keeps the recordset hidden. John ---------------------------------------------------------- You are subscribed to cfcdev. To unsubscribe, send an email to [email protected] with the words 'unsubscribe cfcdev' as the subject of the email. CFCDev is run by CFCZone (www.cfczone.org) and supported by CFXHosting (www.cfxhosting.com). An archive of the CFCDev list is available at www.mail-archive.com/[email protected] |
- Re: [CFCDev] query object CFC Beta John Farrar
- RE: [CFCDev] query object CFC Beta Ben Rogers
- RE: [CFCDev] query object CFC Beta Adam Cameron
- Re: [CFCDev] query object CFC Beta Joe Rinehart
- Re: [CFCDev] query object CFC Beta John Farrar
- RE: [CFCDev] query object CFC Beta Roland Collins
- RE: [CFCDev] query object CFC Beta Roland Collins
- Re: [CFCDev] query object CFC Beta Joe Rinehart
- Re: [CFCDev] query object CFC Beta John Farrar
- RE: [CFCDev] query object CFC Beta Roland Collins
- RE: [CFCDev] query object CFC Beta Ben Rogers
