Pete,

   Thanks for the insight.  The issue with the focusObject seems to be fairly 
nuanced and perhaps based on execution speed and platform.  There is another 
message thread with the subject "Is this a bug or am I missing something?”, 
that seems to indicate that the focusedObject is changing value during the 
execution of a single line of script.  I will file a bug report if appropriate 
when that thread winds to a conclusion.

Thanks,
John


On Oct 9, 2014, at 9:24 AM, Peter Haworth <p...@lcsql.com> wrote:

> I think this is an example of LC not always dereferening things as
> expected, especially when custom properties are involved.
> 
> I've had similar issues in the past and in fact have just had another one
> where the following results in a runtime error:
> 
> put the cMyProp of (line 1 of the recentCards) into tVar
> 
> The following works around the error:
> 
> get line 1 of the recentCards
> put the cMyProp of it into tVar
> 
> As to why the name of the focusedObject and the focusedObject return
> references to two different objects, I think you should enter a QCC report.
> 
> 
> Pete
> lcSQL Software <http://www.lcsql.com>
> Home of lcStackBrowser <http://www.lcsql.com/lcstackbrowser.html> and
> SQLiteAdmin <http://www.lcsql.com/sqliteadmin.html>
> 


_______________________________________________
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode

Reply via email to