Yeah, its just the zero thing. I don't quite understand why they did that. It's
standard to allow Left(string,0) in most other languages.... *sigh*

David

Michael Imhoff wrote:
> 
> My bad, I just remember that it will still error on a zero so it looks like
> you are going to have to do something like.
> 
> <cfif Val(theChars) AND Val(theChars) GTE 1>
>  <cfoutput>#Left(theWord, abs(Val(theChars)))#</cfoutput>
> </cfif>
> 
> Hope that helps...
> -Michael
> 
> ========================================
> Michael Imhoff :::: www.omnicypher.com :::: icq: 10495667
> [EMAIL PROTECTED] (home) :::: (320) 255-4447 (home)
> [EMAIL PROTECTED] (cell) :::: (612) 247-8159 (cell)
> Allaire Alliance Consulting Partner
> 
> ----- Original Message -----
> From: David Cummins <[EMAIL PROTECTED]>
> To: <[EMAIL PROTECTED]>
> Sent: Wednesday, May 17, 2000 3:28 AM
> Subject: Another Rhetorical Whinge
> 
> > Because it feels so good to get these things out of the system...
> >
> > Why does the ColdFusion Left() function only accept positive lengths, i.e.
> not
> > length zero? I've got to put an if condition in now to check for every
> time a
> > string is truncated to the empty string.
> >
> > Urgh.
> >
> > David
> > --------------------------------------------------------------------------
> ----
> > 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.
> 
> ------------------------------------------------------------------------------
> 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.
------------------------------------------------------------------------------
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.

Reply via email to