Original Message:
> From: "Dave Carabetta" <[EMAIL PROTECTED]>

> Basically, the order in which I nest the LCase() and PreserveSingleQuotes() 
> function seems to matter. In scenario 1, with the LCase() as the outer 
> function, all's well. But if I switch the nesting such that the 
> PreserveSingleQuotes() function is the outer funtion, I get the ColdFusion 
> error message displayed after the test cases.

> Test Case 1 (Successful):
> <cfset Variables.textString = "This is a single's test">
> <cfoutput>#lCase(preserveSingleQuotes(Variables.textString))#</cfoutput>
> 
> Test Case 2 (Fails):
> <cfset Variables.textString = "This is a single's test">
> <cfoutput>#preserveSingleQuotes(lCase(Variables.textString))#</cfoutput>
> 
> Test Case 2 results in this error (ignore the line number, as my test 
> template has a little more in :
> Invalid CFML construct found on line 2 at column 38.
> ColdFusion was looking at the following text:
> (

I don't know if it's a bug, as much as a "quirk".  The docs for PreserveSingleQuotes() 
say that it takes a "variable" as an argument.

Because lcase() returns a string, you're not technically passing it a variable 
anymore. You're passing an actual string. 

While I don't think it's actually a "bug" (like I said), it seems like it SHOULD allow 
you to pass any string to PreserveSingleQuotes(), whether it's a variable or an actual 
string.

Scott


---------------------------
Scott Brady
http://www.scottbrady.net/


~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Archives: http://www.houseoffusion.com/lists.cfm?link=t:4
Subscription: http://www.houseoffusion.com/lists.cfm?link=s:4
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4

Signup for the Fusion Authority news alert and keep up with the latest news in 
ColdFusion and related topics. 
http://www.fusionauthority.com/signup.cfm

Reply via email to