Hi,
Is there a way I can make the second parameter in a CreateObject(,,)
function accept a dynamic variable.
I got this error: "This expression must have a constant value."
I move the app to different sites and would like a way to dynamically set
the components folder location.
This is the code that I have:
<cfset myFolder = "sam.HelpInfo">
<cfset myInfo =
createObject("component","#variables.myFolder#.dataAccess" )>
Thanks
Sam
---
[This E-mail scanned for viruses.]
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Special thanks to the CF Community Suite Gold Sponsor - CFHosting.net
http://www.cfhosting.net
Message: http://www.houseoffusion.com/lists.cfm/link=i:4:188035
Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4
Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
Donations & Support: http://www.houseoffusion.com/tiny.cfm/54