Whew! :) As it turns out, the vast majority of references to "this" as a
variable name were in the class methods, so by doing a multi-file rereplace
from "([^[:alpha:]])this([^[:alpha:]])" to "\1self\2" on the directory and
subdirectories, I was able to replace all the references to "this" with a
new variable name which isn't likely to be used anywhere else in those files
and eliminated some 2800+ references to them.

Now I've got 500 references left in the rest of the app. :)

Thanks for the heads up btw. :)


s. isaac dealey                954-776-0046

new epoch                      http://www.turnkey.to

lead architect, tapestry cms   http://products.turnkey.to

tapestry api is opensource     http://www.turnkey.to/tapi

certified advanced coldfusion 5 developer
http://www.macromedia.com/v1/handlers/index.cfm?ID=21816


> Not relevant but BTW I had some weird things start
> happening when I
> moved some code that used a structure called this to CFMX,
> since it's a
> scope name.

>> -----Original Message-----
>> From: S. Isaac Dealey [mailto:[EMAIL PROTECTED]]
>> Sent: Friday, 24 January 2003 2:52 p.m.
>> To: CF-Talk
>> Subject:
>> structkeyexists(this,"files")_is_true_and_isdefined("this
>> .files")_is_
>> false
>>
>>
>> I have a structure (this) which contains a key (files)
>> which
>> is a query. If
>> I dup the structure, the files query shows in the dump.
>> If I reference
>> this["files"] everything works fine. If I reference
>> this.files I get "error
>> resolving parameter THIS.FILES" i.e. "it doesn't exist"
>> although it
>> obviously does exist. What am I missing?
>>
>> I'm using this code:
>>
>> <cfdump var="#this['files']#">
>> <cfdump var="#this.files#">
>>
>> So I know there isn't anything else in the middle
>> screwing it
>> up, it's just
>> one syntax works and the other doesn't.
>>
>> CF 5 IIS 5 Win2K Server
>>
>> s. isaac dealey                954-776-0046
>>
>> new epoch                      http://www.turnkey.to
>>
>> lead architect, tapestry cms   http://products.turnkey.to
>>
>> tapestry api is opensource     http://www.turnkey.to/tapi
>>
>> certified advanced coldfusion 5 developer
>> http://www.macromedia.com/v1/handlers/index.cfm?ID=21816
>>
>>
> ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
> ~~~~~~~~~~~|
> Archives:
> http://www.houseoffusion.com/cf_lists/index.cfm?forumid=4
> Subscription: http://www.houseoffusion.com/cf_lists/index.
> cfm?method=subscribe&forumid=4
> FAQ: http://www.thenetprofits.co.uk/coldfusion/faq
> Signup for the Fusion Authority news alert and keep up
> with the latest news in ColdFusion and related topics.
> http://www.fusionauthority.com/signup.cfm

>                               Unsubscribe: http://www.houseoffusion.com/cf_lists/uns
>                               ubscribe.cfm?user=633.558.4


~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Archives: http://www.houseoffusion.com/cf_lists/index.cfm?forumid=4
Subscription: 
http://www.houseoffusion.com/cf_lists/index.cfm?method=subscribe&forumid=4
FAQ: http://www.thenetprofits.co.uk/coldfusion/faq
Structure your ColdFusion code with Fusebox. Get the official book at 
http://www.fusionauthority.com/bkinfo.cfm

                                Unsubscribe: 
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
                                

Reply via email to