On Tuesday, April 1, 2003, at 03:59 PM, Suyer, Ed [PRD Non-J&J] wrote:
<cfif structKeyExists(arguments, "userName") and len(arguments.userName)>where username=#arguments.username#</cfif>
This way you check for the existing of the argument && not being set to the default value.
Either way, I believe this'll make the block of code you sent work + you can keep the cfargument tags.
I finally decided that the combination of client side validation (Thanks QForm!) and the len function would be enough. Adding the structKeyExists call won't change a whit as the keys are added to the struct by the cfargument tag. I really wish that wasn't the case...
-- Howard Fore, [EMAIL PROTECTED] "Whom the gods destroy, they first make mad" - Euripedes
----------------------------------------------------------
You are subscribed to cfcdev. To unsubscribe, send an email
to [EMAIL PROTECTED] with the word 'unsubscribe cfcdev' in the message of the email.
CFCDev is run by CFCZone (www.cfczone.org) and supported by Mindtool, Corporation (www.mindtool.com).
