Hello -
I hope someone can shed some light on this... and if it's possible. Here is a
small chunk of code:
<cffunction name="getDatasource" access="public" output="false"
returntype="sagp.datasource">
<cfreturn variables.datasource />
</cffunction>
In the "returntype", I would like to reference a variable instead of hardcode
the component reference. So, I would like to end up with this:
<cffunction name="getDatasource" access="public" output="false"
returntype="#application.components#.datasource">
<cfreturn variables.datasource />
</cffunction>
I get an error of "This expression must have a constant value." Is this
possible? I would appreciate any help!
Mike
Mike Hunsaker
Systems Analysis Application Development
Kelley School of Business
Bloomington, IN 47405-1703
[email protected]<mailto:[email protected]>
(812) 855-7024
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Order the Adobe Coldfusion Anthology now!
http://www.amazon.com/Adobe-Coldfusion-Anthology/dp/1430272155/?tag=houseoffusion
Archive:
http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:343578
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm