If you just want to make sure that a negative number won't throw an error,
it is best to check the lengths first but you could do something like this
if you really want to.  It would at least suppress the error.

<!--- variable that left() will be applied to --->
<cfset theWord = "blah">
<!--- variable that will hold how many characters to get --->
<cfset theChars = -8>

<cfoutput>#Left(theWord, abs(theChars))#</cfoutput>

========================================
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



------------------------------------------------------------------------------
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