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

Reply via email to