Hi all, 
 
I came across something today that just made my jaw drop...
 
I have a snippet of code:
<cfparam name="form.myField" default="" />
 
<cfif form.myField neq "">
    <cfset variables.myNewField = "Didn't pass anything in" />
<cfelse>
    <cfset Variables.myNewField = "You passed in: " & form.myField />
</cfif>
<cfoutput>#Variables.myNewField#</cfoutput>
 
If I change the <cfif form.myField neq ""> to <cfif not
len(form.myField)>, I mysteriously get a NULL NULL error.  This type of
code works in other pages.
 
Got me stumped.
 
Steve
 


~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Message: http://www.houseoffusion.com/lists.cfm/link=i:4:231011
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