first, 'x' is a structure, not a string, so it's erroring.  Second,
after you fix that, you're going to immediately get an error saying
that you haven't supplied a value for the 'field' argument, and it's
required.

cheers,
barneyb

On Tue, 14 Dec 2004 17:04:49 -0500, Damien McKenna
<[EMAIL PROTECTED]> wrote:
> Here's the top of a UDF I wrote:
> 
> <cffunction name="LogMessage" output="false" returntype="boolean">
> <cfargument name="user" required="No" type="string" default="WWW" />
> <cfargument name="field" required="Yes" type="string" />
> 
> Here's how I call it:
> 
> <cfset x = StructNew() />
> <cfset x.field = "email" />
> <cfset x = LogMessage(x) />
> 
> I get this message:
> 
> Message:
> The argument USER passed to function LogMessage() is not of type string.
> 
> Detail:
> If the component name is specified as a type of this argument, the
> reason for this error might be that a definition file for such component
> cannot be found or is not accessible.
> 
> Would someone mind helping me with this?  What am I doing wrong?
> Thanks.
> 
> --
> Damien McKenna - Web Developer - [EMAIL PROTECTED]
> The Limu Company - http://www.thelimucompany.com/ - 407-804-1014
> #include <stdjoke.h>
> 
-- 
Barney Boisvert
[EMAIL PROTECTED]
360.319.6145
http://www.barneyb.com/blog/

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Special thanks to the CF Community Suite Silver Sponsor - RUWebby
http://www.ruwebby.com

Message: http://www.houseoffusion.com/lists.cfm/link=i:4:187651
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=11502.10531.4
Donations & Support: http://www.houseoffusion.com/tiny.cfm/54

Reply via email to