Does anybody know if it is possible to access the variables scope of the calling page from within a CFC? You can do this with a custom tag using the caller scope. I tried to create an error hander inside of a CFC that dumps out all the scopes, but I ran into a hurdle because all the error information is in the variable scope of the page that had the error.

The only way around this problem that I have found, short of abandoning the CFC idea, is to pass the variables scope into each CFC function call and append it to the CFC's variables scope. However, this work-around to too annoying to implement. I think the best solution will be to convert the CFC to a cfinclude function library, but I thought I would first check to see if I am missing something obvious.

I'm using CFMX 6.1.

Thank you,
Mike Chabot

----------------------------------------------------------
You are subscribed to cfcdev. To unsubscribe, send an email
to [EMAIL PROTECTED] with the words 'unsubscribe cfcdev' in the message of the email.


CFCDev is run by CFCZone (www.cfczone.org) and supported
by Mindtool, Corporation (www.mindtool.com).

An archive of the CFCDev list is available at www.mail-archive.com/[EMAIL PROTECTED]

Reply via email to