Look closer at the code:
<CFIF NOT Len(Trim(Form.firstname))> will return FALSE if the string has a
length greater than 0.
<CFIF Len(Trim(Form.firstname)) GT 0> will return TRUE if the string has a
length greater than 0.
To compare these two statements you need to drop the "NOT" operator from the
first one :)
It will work and does work quite nicely.
Happy Coding,
Brett Suwyn
mailto:[EMAIL PROTECTED]
> -----Original Message-----
> From: paul smith [mailto:[EMAIL PROTECTED]]
> Sent: Tuesday, June 27, 2000 9:47 AM
> To: [EMAIL PROTECTED]
> Subject: RE: NULL using it in CF
>
>
> <CFIF NOT Len(Trim(Form.firstname))> doesn't work
>
> whereas <CFIF Len(Trim(Form.firstname)) GT 0> does work.
>
> Why?
>
> best, paul
>
------------------------------------------------------------------------------
Archives: http://www.eGroups.com/list/cf-talk
To Unsubscribe visit
http://www.houseoffusion.com/index.cfm?sidebar=lists&body=lists/cf_talk or send a
message to [EMAIL PROTECTED] with 'unsubscribe' in the body.