- see footer for list info -<
de() is delay evaluation.
Why are you storing the variable in the DB? Its already available in the application, so why not just use it directly in your code? However you do it there's got to be better ways of managing this than storing the variable in the db table and doing a evaluate(de(...)), which is just really horrible... On 25/05/06, RichL <[EMAIL PROTECTED]> wrote:
>- see footer for list info -< That's really great thanks... it was the DE that I was missing... I did think about trying it but after reading more about it didn't seem asthough it fitted what I need Can you explain what the DE adds to this please? Thanks again On 5/25/06, Adam Cameron <[EMAIL PROTECTED]> wrote: > > >- see footer for list info -< > <cfset path ="##request.root##filename1.cfm"> > <cfset request.root = "C:\Inetpub\wwwroot\"> > <cfoutput>#evaluate(de(path))#</cfoutput> > > I have to admit, I've never understood this. > -- > Adam > > -----Original Message----- > From: [EMAIL PROTECTED] > [mailto:[EMAIL PROTECTED] On Behalf Of RichL > Sent: 25 May 2006 08:32 > To: cfdev > Subject: [CF-Dev] Dynamic variable evaluation > > >- see footer for list info -< > If I have a path set in a request variable e.g. request.root and I want > to hold a path and filename in the db together using the request > variable and a fixed file name; I was thinking I could hold it something > like > > #request.root#/filename1.cfm > > then pull back this value from the DB and have CF resolve the value of > request.root but it doesn't seem to work. I've tried various > combinations using Evaluate but can't get it to resolve the variable > whilst forming a string with the filename as it is stored on the DB. > > Any ideas ? > > (I tried storing it on the DB in a field called path as: > > request.root & "filenamea.cfm" > > and then setting a new variable equal to the queryname.path but that > doesn' > resolve properly either > > -- > Rich > _______________________________________________ > > For details on ALL mailing lists and for joining or leaving lists, go to > http://list.cfdeveloper.co.uk/mailman/listinfo > > -- > CFDeveloper Sponsors:- > >- Hosting provided by www.cfmxhosting.co.uk -< > >- Forum provided by www.fusetalk.com -< > >- DHTML Menus provided by www.APYCOM.com -< > >- Lists hosted by www.Gradwell.com -< > >- CFdeveloper is run by Russ Michaels, feel free to volunteer your help > > >-< > _______________________________________________ > > For details on ALL mailing lists and for joining or leaving lists, go to > http://list.cfdeveloper.co.uk/mailman/listinfo > > -- > CFDeveloper Sponsors:- > >- Hosting provided by www.cfmxhosting.co.uk -< > >- Forum provided by www.fusetalk.com -< > >- DHTML Menus provided by www.APYCOM.com -< > >- Lists hosted by www.Gradwell.com -< > >- CFdeveloper is run by Russ Michaels, feel free to volunteer your help > -< > -- Rich _______________________________________________ For details on ALL mailing lists and for joining or leaving lists, go to http://list.cfdeveloper.co.uk/mailman/listinfo -- CFDeveloper Sponsors:- >- Hosting provided by www.cfmxhosting.co.uk -< >- Forum provided by www.fusetalk.com -< >- DHTML Menus provided by www.APYCOM.com -< >- Lists hosted by www.Gradwell.com -< >- CFdeveloper is run by Russ Michaels, feel free to volunteer your help -<
_______________________________________________ For details on ALL mailing lists and for joining or leaving lists, go to http://list.cfdeveloper.co.uk/mailman/listinfo -- CFDeveloper Sponsors:-
- Hosting provided by www.cfmxhosting.co.uk -< - Forum provided by www.fusetalk.com -< - DHTML Menus provided by www.APYCOM.com -< - Lists hosted by www.Gradwell.com -< - CFdeveloper is run by Russ Michaels, feel free to volunteer your help -<
