|
Hmmmm. Good catch. This one should work then:
<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 IsCustomFunction(variables[oVar])) stReturn[oVar] = variables[oVar]; }
return stReturn; </CFSCRIPT> </CFFUNCTION>
J
From:
[EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Nathan Dintenfass
But, won't that return any methods not in the public scope?
|
- [CFCDev] Getting the names of Variables in Variabl... Jim McMullen \(Devlab\)
- Re: [CFCDev] Getting the names of Variables i... Sean A Corfield
- RE: [CFCDev] Getting the names of Variables i... Nathan Dintenfass
- RE: [CFCDev] Getting the names of Variables i... Roland Collins
- RE: [CFCDev] Getting the names of Variabl... Nathan Dintenfass
- RE: [CFCDev] Getting the names of Var... Roland Collins
- RE: [CFCDev] Getting the names of... Jim McMullen \(Devlab\)
- Re: [CFCDev] Getting the names of... Sean A Corfield
