This is one
of the many reasons I like to use a "virtual" scope for my instance data.
I like to call it "instance", and in my init I say:
<cfset
variables.instance = structNew()>
I then use
"instance.foo" for all instance data.
But, if
don't want to go there, you'd have to loop through and exclude the key "THIS"
and then exclude all keys that have a value that returns true for
isCustomFunction() -- that should do it.
-----Original Message-----
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]On Behalf Of Jim McMullen (Devlab)
Sent: Thursday, April 15, 2004 1:13 AM
To: [EMAIL PROTECTED]
Subject: [CFCDev] Getting the names of Variables in Variables ScopeIs there a way to create a list of the variable names of instance data in the variables scope without assembling it manually?I thought I could do this...<cffunction name="getVariablesKeyList" returntype="string" access="public"><cfreturn StructKeyList(variables)></cffunction>...But of course in addition to all the variable names, this function also adds to the list the names of all the CFC's functions, the word "this", the word "variables", etc.Anyone got a better idea or a UDF I can use? Thanks.Jim McMullenDevlab, Inc.
