Holy Zarquon's singing fish! I absolutely LOVE it when we get into these discussions where the "you should never..." starts coming up. The only true generalization is that ALL GENERALIZATIONS ARE FALSE. It is not good to be in the habit of referring to the form scope in your CFC's. That does not mean that you should NEVER do it though. It sometimes fits in really nicely with what you're trying to accomplish. If that's the case, then by all means refer to the form scope in your CFC's. I do agree though, that it's not a good idea in most cases.
Sorry, I know the OP had nothing to do with this specific argument, but you all know by now that I'm gonna pitch a fit just about every time I hear someone telling people they should "never" or they should "always" do x or y or z, or even N. --Ferg Oh by the way, you should NEVER step out in front of a bus traveling at high speed and it's ALWAYS a good idea to ensure that your firearm is unloaded before cleaning it. I just felt I needed to throw this in as a preemptive strike at those who are going to say my "no generalizations" argument is wrong. Exceptions abound... Barney Boisvert wrote: >You should never* be referring to the form scope in a CFC. You should >be doing structKeyExists(arguments, "imageName") and if that returns >true, then use it. If it returns false, you don't have the variable >to work with (regardless of whether it happens to exist in the 'form' >scope). If it does exist in form, not in arguments, and you NEED to >have it, then it should be passed into the method. > >cheers, >barneyb > >* blah blah blah, never is never accurate, there are always exceptions. > >On 9/8/05, Matthew Blatchley <[EMAIL PROTECTED]> wrote: > > >>When using arguments that are not required: >> >><cfargument name="imageName" type="string" required="no"> >> >>Why do we refer to the argument as #form.imageName# instead of >>#ARGUMENTS.imageName#, or does it not matter? >> >>Matt >> >> >> > > > ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~| Logware (www.logware.us): a new and convenient web-based time tracking application. Start tracking and documenting hours spent on a project or with a client with Logware today. Try it for free with a 15 day trial account. http://www.houseoffusion.com/banners/view.cfm?bannerid=67 Message: http://www.houseoffusion.com/lists.cfm/link=i:4:217756 Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4 Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4 Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4 Donations & Support: http://www.houseoffusion.com/tiny.cfm/54

