Is this structKeyExists(arguments, "imageName") the same as 
IsDefined("ARGUMENTS.imageName")?

----- Original Message ----- 
From: "Barney Boisvert" <[EMAIL PROTECTED]>
To: "CF-Talk" <cf-talk@houseoffusion.com>
Sent: Thursday, September 08, 2005 3:41 PM
Subject: Re: Simple CFC quesiton


> 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
>>
>
> -- 
> Barney Boisvert
> [EMAIL PROTECTED]
> 360.319.6145
> http://www.barneyb.com/
>
> Got Gmail? I have 100 invites.
>
> 

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
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:217699
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

Reply via email to