Bill Rawlinson wrote:
Only the untalented can afford to be humble.

--

No, you can do it a bit cleaner:


<cfqueryparam cfsqltype="cf_sql_varchar" value="#someval#"
maxlength="40" null="#Len(someval) EQ 0#" />
or cleaner and faster still because CF doesn't have to do a comparison to 0:

<cfqueryparam cfsqltype="cf_sql_varchar" value="#someval#"
maxlength="40" null="#NOT Len(someval)#" />



--
Peter J. Farrell :: Maestro Publishing

blog    :: http://blog.maestropublishing.com
email   :: [EMAIL PROTECTED]

Create boilerplate beans!
Check out the Mach-II Bean Creator - free download.
http://blog.maestropublishing.com/mach-ii_beaner.htm



----------------------------------------------------------
You are subscribed to cfcdev. To unsubscribe, send an email to 
[email protected] with the words 'unsubscribe cfcdev' as the subject of the 
email.

CFCDev is run by CFCZone (www.cfczone.org) and supported by CFXHosting 
(www.cfxhosting.com).

CFCDev is supported by New Atlanta, makers of BlueDragon
http://www.newatlanta.com/products/bluedragon/index.cfm

An archive of the CFCDev list is available at 
www.mail-archive.com/[email protected]


Reply via email to