Seems like you can only use simple variables in preserveSingleQuotes() - you
can't even use a string! See this for example (the commented out line
generates an error):

<cfset a = arraynew(1)>
<cfset a[1] = "qwerty">
<cfset a[2] = "asdfg">
<!--- <cfoutput>#preservesinglequotes(arraytolist(a))#</cfoutput> --->
<cfset b = arraytolist(a)>
<cfoutput>#preservesinglequotes(b)#</cfoutput>

It would be interesting to know how this function works!

Matthew Walker
Electric Sheep Web
http://www.electricsheep.co.nz/


----- Original Message -----
From: "S. Isaac Dealey" <[EMAIL PROTECTED]>
To: "CF-Talk" <[EMAIL PROTECTED]>
Sent: Monday, March 24, 2003 7:21 AM
Subject: unknown parser error from UDF


> Using
>
> CF 5
> Win2K Server
> IIS 5
>
> I have the following in a template
>
> <cfscript>
> function dbconcatenate() {
> return preservesinglequotes(ArrayToList(arguments," + "));
> }
> request.tapi.tStor("dbconcatenate","db.concatenate");
> </cfscript>
>
> The cfscript block contains several other functions as well, however, the
> odd thing is that no matter what I comment out, unless I comment out the
> _entire_ template, CF Studio (4.5) reports the unknown parser error. CF
> Server on the other hand has no problem with the template as long as I
> comment out the preservesinglequotes() function -- i.e. no problem with
> this:
>
> return /*preservesinglequotes(*/ArrayToList(arguments," + ")/*)*/;
>
> Anybody have any ideas?
>
> s. isaac dealey                954-776-0046
>
> new epoch                      http://www.turnkey.to
>
> lead architect, tapestry cms   http://products.turnkey.to
>
> tapestry api is opensource     http://www.turnkey.to/tapi
>
> certified advanced coldfusion 5 developer
> http://www.macromedia.com/v1/handlers/index.cfm?ID=21816
>
> 
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Archives: http://www.houseoffusion.com/cf_lists/index.cfm?forumid=4
Subscription: 
http://www.houseoffusion.com/cf_lists/index.cfm?method=subscribe&forumid=4
FAQ: http://www.thenetprofits.co.uk/coldfusion/faq
Your ad could be here. Monies from ads go to support these lists and provide more 
resources for the community. http://www.fusionauthority.com/ads.cfm

                                Unsubscribe: 
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
                                

Reply via email to