changing defaultStack

Paul Kocsis pkocsis at cox.net
Mon Nov 29 02:53:15 EST 2004


>>Thank you for your response Jacqueline.  No, I don't use a "go" anywhere
in
>>my stack...the 2 stacks in question get "open"ed very close together...one
>>right after the other
>
>"open" is the same command as "go" - they're synonyms.

Yes....a big "DUH!" on my part...thank you Jeanne...for some reason, in the
previous post when I read "go", my mind registered "start using"....

>> ....makes me worry about the myriads of times I use both "this stack" 
>> as well
>> as refer to fields as "field XXXX" (with no "of stack ....") in the 
>> rest of
>> my 1000's of lines of code in the app.....
>
>I chased similar things around and around in some of my projects. In 
>the end, I decided that I would *never* trust it, and explicitly refer 
>to stacks, or set the defaultStack in any handler which uses it. The 
>safest thing to do, is at the top of any handler which uses "this", is 
>to first tell it EXACTLY what "this" is.

Ugh....*that's* what I was afraid of....thanks Troy....one last Q...your
statement:

"...tell it EXACTLY what 'this' is..."

By that do you mean that you set the defaultStack at the top of every
handler?  Were you having the problem of referring to an object like:

field AA   instead of...

field AA of stack XX

where the former would at times error out with "Object: No such object"??

P.S. (as well as OT) Since I (obviously) don't have the "get every post into
my email" option turned on for the use list...is there any way I can respond
to a post without creating a "new" thread?  ...sorry that my responses have
been creating new threads....



More information about the use-livecode mailing list