Is this a bug or am I missing something?

John john at onechip.com
Thu Oct 9 01:20:59 EDT 2014


   I just tried the same thing using versions 6.6.2 and 5.0.2 with the same result so I am guessing that I am missing something given this is how it has worked for a long time.  Apparently the combination of “name” with the “focusedObject” doesn’t do what I would intuitively think.  It still seems odd that you end up with references to different objects however.  At a minimum you would think it should throw an error at compile time if this is not allowed.

Thanks,
John


On Oct 8, 2014, at 10:02 PM, John <john at onechip.com> wrote:

>   I have found a circumstance where "the long name of the focusedObject” and “the focusedObject” refer to different objects in the same line of a script.  The line is: “ put the long name of the focusedObject & return & return & the focusedObject into field “results” “.  This is the only line in a mouseDown handler of the menubar group script.
> 
>   If anyone is interested, a very simple stack that demonstrates this is available here: https://www.dropbox.com/s/4cc7j7i06r18r6b/Test%20stack.livecode?dl=0 .  You may have to remove the “.txt” from the end of the file that is downloaded.
> 
>   Is there a circumstance where the "name of the focusedObject" and "the focusedObject" should refer to different objects?  This is happening in LC 7 RC2 under 10.9.5.
> 
> Thanks,
> John
> _______________________________________________
> use-livecode mailing list
> use-livecode at lists.runrev.com
> Please visit this url to subscribe, unsubscribe and manage your subscription preferences:
> http://lists.runrev.com/mailman/listinfo/use-livecode





More information about the use-livecode mailing list