I suppose you're right.  It's probably an order of operation thing,
where the CF server compiles the variables from the inside out.  So
with this:
file="#expandPath("projFiles/#url.jobNum#/#url.fileToOpen#")#"
it would compile in this order:
1. #url.jobNum# & #url.fileToOpen#
2. #expandPath("...")#
3. file="..."

Interesting...well for my own sanity's sake I'll still try not to put
double quotes inside of double qoutes in the future.  :)

On 2/15/07, Cutter (CFRelated) <[EMAIL PROTECTED]> wrote:
> Could this be because the internal quotes are part of an evaluated
> parameter (i.e.: #expandPath("some#path#")#)?
>
> Cutter
> _______________
> http://blog.cutterscrossing.com
>
> Jacob Munson wrote:
> > I ran across what I thought was a bug in my code, but it works.
> > <cffile
> >   action="readBinary"
> >   file="#expandPath("projFiles/#url.jobNum#/#url.fileToOpen#")#"
> >   variable="thisFile">
> >
> > You'll notice that in the file attribute I've got another quoted value
> > within the main quotes.  When I saw this I thought it was a bug, but
> > then I remembered that the page hasn't caused me problems before.  So
> > I tried to run it and sure enough, it works.  In the past I've always
> > used single quotes for the inner value where necessary, so I'm
> > surprised this works.  I could swear that I've had syntax errors from
> > this before...
> >
>
> 

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Upgrade to Adobe ColdFusion MX7 
Experience Flex 2 & MX7 integration & create powerful cross-platform RIAs 
http:http://ad.doubleclick.net/clk;56760587;14748456;a?http://www.adobe.com/products/coldfusion/flex2/?sdid=LVNU

Archive: 
http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:269946
Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4

Reply via email to