>Wow, I just read what I wrote...it is like English but different. But if
>you lower your intelligence by a few notches, you just might get the jist.
>Sorry.
I've been testing different ways of doin this. Ray tipped me off to a new
feature of XMLParse() in mx7 which lets you use filenames and url's, so you can
eliminate the whole cffile read, like this:
<!--- Create a new CF XML document object--->
<cfset thevalues = XMLparse(ExpandPath("config.xml"))>
And what's mixing me up is the need to *get* the variables into a cfc. If you
loop thru and save all your xml to application variables, they're ready to use
in a cfc. This doesn't look like good cfc practice, but it works. If I create a
cfc using this, it returns the correct value. I never passed anything to it.
<cfcomponent>
<cffunction name="myFunction" access="public" returntype="string">
<cfset myResult = APPLICATION.DSN>
<cfreturn myResult>
</cffunction>
</cfcomponent>
Will
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Find out how CFTicket can increase your company's customer support
efficiency by 100%
http://www.houseoffusion.com/banners/view.cfm?bannerid=49
Message: http://www.houseoffusion.com/lists.cfm/link=i:4:218570
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