But, won't that return any methods not in the public scope?
 
 
 
-----Original Message-----
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]On Behalf Of Roland Collins
Sent: Thursday, April 15, 2004 2:37 PM
To: [EMAIL PROTECTED]
Subject: RE: [CFCDev] Getting the names of Variables in Variables Scope

Drop this in your CFC then execute it from within:

 

<CFFUNCTION NAME="getVariablesScope" RETURNTYPE="struct" OUTPUT="false" ACCESS="private">

            <CFSCRIPT>

                        var stReturn = StructNew();

                        var oVar = "";

 

                        for (oVar IN variables)     {

                                    if (oVar IS NOT "this" AND NOT StructKeyExists(this, oVar))

                                                stReturn[oVar] = variables[oVar];

                        }

                       

                        return stReturn;

            </CFSCRIPT>

</CFFUNCTION>

 

Hope this helps,

Roland

Reply via email to